From e1cbc73b8c595fd2b23cf3fa61a9e6c8f31e8b13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 27 Sep 2023 09:17:14 +0200 Subject: [PATCH] Suppress the invisible participant warning for drafts This was broken, because drafts do not yet have any participants. see e61853a4adf02f1ca36a4718a96f90cd322aad44 --- templates/conversationQuickReply.tpl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/conversationQuickReply.tpl b/templates/conversationQuickReply.tpl index acb5aa3..2cccf42 100644 --- a/templates/conversationQuickReply.tpl +++ b/templates/conversationQuickReply.tpl @@ -4,11 +4,13 @@
- {if !$conversation->isDraft && !$conversation->hasOtherParticipants()} -

{lang}wcf.conversation.noParticipantsWarning{/lang}

- {/if} - {if $participants[$__wcf->user->userID]->isInvisible} -

{lang}wcf.conversation.invisibleParticipantWarning{/lang}

+ {if !$conversation->isDraft} + {if !$conversation->hasOtherParticipants()} +

{lang}wcf.conversation.noParticipantsWarning{/lang}

+ {/if} + {if $participants[$__wcf->user->userID]->isInvisible} +

{lang}wcf.conversation.invisibleParticipantWarning{/lang}

+ {/if} {/if} {event name='beforeWysiwyg'} -- 2.20.1