mirror of https://github.com/zulip/zulip.git
populate_db: Be a little more defensive about message types.
(imported from commit fe23365180847065a9a3292f7873dcb36bb277db)
This commit is contained in:
parent
55d9c08c83
commit
dab25bdff7
|
@ -294,13 +294,15 @@ def restore_saved_messages():
|
|||
if u["email"] not in email_set:
|
||||
user_set.add((u["email"], u["full_name"], u["short_name"]))
|
||||
email_set.add(u["email"])
|
||||
else:
|
||||
elif old_message['type'] == 'huddle':
|
||||
for u in old_message["recipient"]:
|
||||
user_set.add((u["email"], u["full_name"], u["short_name"]))
|
||||
if u["email"] not in email_set:
|
||||
user_set.add((u["email"], u["full_name"], u["short_name"]))
|
||||
email_set.add(u["email"])
|
||||
huddle_user_set.add(tuple(sorted(u["email"] for u in old_message["recipient"])))
|
||||
else:
|
||||
raise
|
||||
|
||||
stream_recipients = {}
|
||||
user_recipients = {}
|
||||
|
|
Loading…
Reference in New Issue