mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
populate_db: Don't create huddles with 2 copies of the same person in them.
Bug caught by our new unique_together constraints. (imported from commit 37c1fc459b98050417e907653a5a4fc97004903b)
This commit is contained in:
parent
5ab0cccf41
commit
2be66f0e8a
@ -316,7 +316,7 @@ def restore_saved_messages():
|
||||
if u["email"] not in email_set:
|
||||
user_set.add((u["email"], u["full_name"], u["short_name"], False))
|
||||
email_set.add(u["email"])
|
||||
huddle_user_set.add(tuple(sorted(u["email"] for u in old_message["recipient"])))
|
||||
huddle_user_set.add(tuple(sorted(set(u["email"] for u in old_message["recipient"]))))
|
||||
else:
|
||||
raise ValueError('Bad message type')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user