Split wildcard mentions from personal mentions, only email on personals

(imported from commit 18971d9e40dd2c93ef9c30edc963da33e3c65309)
This commit is contained in:
Leo Franchi
2013-05-31 10:15:27 -04:00
committed by Steve Howell
parent 905cf9b3ff
commit 56af48cd50
4 changed files with 9 additions and 5 deletions

View File

@@ -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)