Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
event_schema: Use notification_settings_legacy to get type.
Sahil Batra8b711695cb67
diff --git a/zerver/lib/event_schema.py b/zerver/lib/event_schema.pyindex 53f6d75bcf4..fc14a5a5164 100644--- a/zerver/lib/event_schema.py+++ b/zerver/lib/event_schema.py@@ -1470,7 +1470,7 @@ def check_update_global_notifications(desired_val: Union[bool, int, str],) -> None:"""- See UserProfile.notification_setting_types for+ See UserProfile.notification_settings_legacy formore details."""_check_update_global_notifications(var_name, event)@@ -1479,7 +1479,7 @@ def check_update_global_notifications(assert setting == desired_valassert isinstance(setting_name, str)- setting_type = UserProfile.notification_setting_types[setting_name]+ setting_type = UserProfile.notification_settings_legacy[setting_name]assert isinstance(setting, setting_type)