mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
Correctly set read flag for messages sent by yourself.
Compare two user objects by id to prevent false negatives when the objects are fetched thru different paths. (imported from commit a41f30d27e2b8021600d89f32d6526f48677fd95)
This commit is contained in:
@@ -283,7 +283,7 @@ def do_send_messages(messages):
|
||||
for um in ums_to_create:
|
||||
sent_by_human = message['message'].sending_client.name.lower() in \
|
||||
['website', 'iphone', 'android']
|
||||
if um.user_profile == message['message'].sender and sent_by_human:
|
||||
if um.user_profile.id == message['message'].sender.id and sent_by_human:
|
||||
um.flags |= UserMessage.flags.read
|
||||
if wildcard:
|
||||
um.flags |= UserMessage.flags.wildcard_mentioned
|
||||
|
||||
Reference in New Issue
Block a user