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.

event_schema: Use notification_settings_legacy to get type.

Sahil Batra8b711695cb67
diff --git a/zerver/lib/event_schema.py b/zerver/lib/event_schema.py
index 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 for
more details.
"""
_check_update_global_notifications(var_name, event)
@@ -1479,7 +1479,7 @@ def check_update_global_notifications(
assert setting == desired_val
assert 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)