mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Preserve muting preferences across reloads.
We have been persisting muting preferences on the back end for a while, but we haven't been adding them to page_params for the client to have at reload/startup time. (imported from commit d9ca68aa0e4d22bfb0e6ce67fc0bc63981175c8b)
This commit is contained in:
@@ -1529,6 +1529,8 @@ def do_events_register(user_profile, user_client, apply_markdown=True,
|
||||
ret['realm_emoji'] = user_profile.realm.get_emoji()
|
||||
if event_types is None or "alert_words" in event_types:
|
||||
ret['alert_words'] = user_alert_words(user_profile)
|
||||
if event_types is None or "muted_topics" in event_types:
|
||||
ret['muted_topics'] = ujson.loads(user_profile.muted_topics)
|
||||
|
||||
# Apply events that came in while we were fetching initial data
|
||||
events = get_user_events(user_profile, queue_id, -1)
|
||||
|
||||
Reference in New Issue
Block a user