mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FIX: correct in_thread? message logic (#27151)
A message is in a thread if: - it has a thread_id - it is in threading_enabled channel OR the associated thread is marked as `force`
This commit is contained in:
@ -266,7 +266,7 @@ module Chat
|
||||
end
|
||||
|
||||
def in_thread?
|
||||
self.thread_id.present? && self.chat_channel.threading_enabled
|
||||
self.thread_id.present? && (self.chat_channel.threading_enabled || self.thread&.force)
|
||||
end
|
||||
|
||||
def thread_reply?
|
||||
|
Reference in New Issue
Block a user