Suppress the invisible participant warning for drafts
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Sep 2023 07:17:14 +0000 (09:17 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 27 Sep 2023 07:17:14 +0000 (09:17 +0200)
This was broken, because drafts do not yet have any participants.

see e61853a4adf02f1ca36a4718a96f90cd322aad44

templates/conversationQuickReply.tpl

index acb5aa3f2f092a1dbe499e5034b42963e420511c..2cccf42f9d86f91f660a6902821ac08925b42374 100644 (file)
@@ -4,11 +4,13 @@
                
                <div class="messageContent messageQuickReplyContent"{if $pageNo < $pages} data-placeholder="{lang}wcf.conversation.reply{/lang}"{/if}>
                        <div class="messageBody">
-                               {if !$conversation->isDraft && !$conversation->hasOtherParticipants()}
-                                       <p class="warning" role="status">{lang}wcf.conversation.noParticipantsWarning{/lang}</p>
-                               {/if}
-                               {if $participants[$__wcf->user->userID]->isInvisible}
-                                       <p class="warning invisibleParticipantWarning" role="status">{lang}wcf.conversation.invisibleParticipantWarning{/lang}</p>
+                               {if !$conversation->isDraft}
+                                       {if !$conversation->hasOtherParticipants()}
+                                               <p class="warning" role="status">{lang}wcf.conversation.noParticipantsWarning{/lang}</p>
+                                       {/if}
+                                       {if $participants[$__wcf->user->userID]->isInvisible}
+                                               <p class="warning invisibleParticipantWarning" role="status">{lang}wcf.conversation.invisibleParticipantWarning{/lang}</p>
+                                       {/if}
                                {/if}
 
                                {event name='beforeWysiwyg'}