Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

events: Set state["emojiset_choices"] only once.

sahil839706ec9714c76
diff --git a/zerver/lib/events.py b/zerver/lib/events.py
index 5fdec1dd9a5..7b8e48a420e 100644
--- a/zerver/lib/events.py
+++ b/zerver/lib/events.py
@@ -503,7 +503,7 @@ def fetch_initial_state_data(
if want("update_display_settings"):
for prop in UserProfile.property_types:
state[prop] = getattr(settings_user, prop)
- state["emojiset_choices"] = UserProfile.emojiset_choices()
+ state["emojiset_choices"] = UserProfile.emojiset_choices()
if want("update_global_notifications"):
for notification in UserProfile.notification_setting_types: