mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user