FIX: show leave channel notice only on group channels (#24653)

This commit is contained in:
Joffrey JAFFEUX 2023-11-30 19:24:14 +01:00 committed by GitHub
parent a1ae9f6ab0
commit 4fa1b0e978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -593,14 +593,13 @@ export default class ChatAboutScreen extends Component {
/>
</:action>
</section.row>
{{#unless @channel.isCategoryChannel}}
{{#if @channel.chatable.group}}
<div class="chat-channel-settings__leave-info">
{{icon "exclamation-triangle"}}
{{i18n "chat.channel_settings.leave_groupchat_info"}}
</div>
{{/unless}}
{{/if}}
</form.section>
</ChatForm>
</div>
</template>