fix: Send notification to all the mentioned users in a private message (#3222)

This commit is contained in:
Muhsin Keloth
2021-10-15 14:35:43 +05:30
committed by GitHub
parent cebd34053b
commit cd5c2c51d9
3 changed files with 44 additions and 10 deletions

View File

@@ -58,7 +58,7 @@ class NotificationListener < BaseListener
return if message.content.blank?
mentioned_ids = message.content.scan(%r{\(mention://(user|team)/(\d+)/(.+)\)}).map(&:second).uniq
mentioned_ids = message.content.scan(%r{\(mention://(user|team)/(\d+)/(.+?)\)}).map(&:second).uniq
return if mentioned_ids.blank?