mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Fix loading event queues that don't have a virtual_events attribute
(imported from commit 99c5ae332d253313ed728883a388c61191ed3021)
This commit is contained in:
@@ -169,7 +169,7 @@ class EventQueue(object):
|
||||
ret = cls(d['id'])
|
||||
ret.next_event_id = d['next_event_id']
|
||||
ret.queue = deque(d['queue'])
|
||||
ret.virtual_events = d["virtual_events"]
|
||||
ret.virtual_events = d.get("virtual_events", {})
|
||||
return ret
|
||||
|
||||
def push(self, event):
|
||||
|
||||
Reference in New Issue
Block a user