mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
Build presence update for missed events properly
(imported from commit 15d75a2e0f5c5e1035b526df3aca443a2cffdf25)
This commit is contained in:
@@ -839,7 +839,7 @@ def do_events_register(user_profile, apply_markdown=True, event_types=None):
|
||||
ret['subscriptions'] = filter(lambda s: s['name'] != sub['name'],
|
||||
ret['subscriptions'])
|
||||
elif event['type'] == "presence":
|
||||
ret['presences'][event['email']][event['presence']['client']] = event['presence']
|
||||
ret['presences'][event['email']] = event['presence']
|
||||
|
||||
if events:
|
||||
ret['last_event_id'] = events[-1]['id']
|
||||
|
||||
Reference in New Issue
Block a user