mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Split wildcard mentions from personal mentions, only email on personals
(imported from commit 18971d9e40dd2c93ef9c30edc963da33e3c65309)
This commit is contained in:
committed by
Steve Howell
parent
905cf9b3ff
commit
56af48cd50
@@ -282,7 +282,9 @@ def do_send_messages(messages):
|
||||
['website', 'iphone', 'android']
|
||||
if um.user_profile == message['message'].sender and sent_by_human:
|
||||
um.flags |= UserMessage.flags.read
|
||||
if wildcard or um.user_profile in mentioned:
|
||||
if wildcard:
|
||||
um.flags |= UserMessage.flags.wildcard_mentioned
|
||||
if um.user_profile in mentioned:
|
||||
um.flags |= UserMessage.flags.mentioned
|
||||
user_message_flags[message['message'].id][um.user_profile] = um.flags_dict().get('flags')
|
||||
ums.extend(ums_to_create)
|
||||
|
||||
Reference in New Issue
Block a user