mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
zilencer/management/commands/populate_db.py: Fix line with len > 120.
This commit is contained in:
committed by
Tim Abbott
parent
37ea785b8f
commit
0cafd9268d
@@ -595,12 +595,14 @@ def restore_saved_messages():
|
||||
user_profile.save(update_fields=["enable_sounds"])
|
||||
elif message_type == "enable_offline_email_notifications_changed":
|
||||
user_profile = users[old_message["user"]]
|
||||
user_profile.enable_offline_email_notifications = (old_message["enable_offline_email_notifications"] != "false")
|
||||
user_profile.enable_offline_email_notifications = (
|
||||
old_message["enable_offline_email_notifications"] != "false")
|
||||
user_profile.save(update_fields=["enable_offline_email_notifications"])
|
||||
continue
|
||||
elif message_type == "enable_offline_push_notifications_changed":
|
||||
user_profile = users[old_message["user"]]
|
||||
user_profile.enable_offline_push_notifications = (old_message["enable_offline_push_notifications"] != "false")
|
||||
user_profile.enable_offline_push_notifications = (
|
||||
old_message["enable_offline_push_notifications"] != "false")
|
||||
user_profile.save(update_fields=["enable_offline_push_notifications"])
|
||||
continue
|
||||
elif message_type == "default_streams":
|
||||
|
||||
Reference in New Issue
Block a user