FEATURE: enable threading in chat DM channels (#29170)

Support threads in DMs and group chats so members can keep their conversations organized.

This change adds a new toggle switch for threads within the Chat Channel Settings screen. For new direct message channels threading is enabled by default.

We have made a decision to exclude direct message threads from the My Threads screen for now.
This commit is contained in:
David Battersby
2024-10-11 13:05:07 +04:00
committed by GitHub
parent d90203f27f
commit 79d2eb5beb
8 changed files with 58 additions and 11 deletions

View File

@ -44,7 +44,7 @@ module Chat
# name and description can be edited.
def can_edit_chat_channel?(channel)
if channel.direct_message_channel?
channel.chatable.group && (is_staff? || channel.chatable.user_can_access?(@user))
is_staff? || channel.chatable.user_can_access?(@user)
elsif channel.category_channel?
is_staff?
end