mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
FEATURE: Link chat notifications directly to message (#23617)
- Updates `Chat::Message#url` to work in threads and for subfolder - Updates Jobs::Chat::NotifyWatching to use message URL instead of channel url
This commit is contained in:
@ -250,7 +250,11 @@ module Chat
|
||||
end
|
||||
|
||||
def url
|
||||
"/chat/c/-/#{self.chat_channel_id}/#{self.id}"
|
||||
if in_thread?
|
||||
"#{Discourse.base_path}/chat/c/-/#{self.chat_channel_id}/t/#{self.thread_id}/#{self.id}"
|
||||
else
|
||||
"#{Discourse.base_path}/chat/c/-/#{self.chat_channel_id}/#{self.id}"
|
||||
end
|
||||
end
|
||||
|
||||
def create_mentions
|
||||
|
Reference in New Issue
Block a user