mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
stream_events: Use is_muted event instead of in_home_view event.
Updates `stream_events.js` to use the subscription update event that is now being sent for the `is_muted` stream property, instead of the event sent for the `in_home_view` property. Because the server is still sending events for `in_home_view`, keeps it as a property processed by `update_property` function, but does nothing with the event. Adds temporary test for coverage.
This commit is contained in:
committed by
Tim Abbott
parent
885c3d6593
commit
a85d589254
@@ -45,7 +45,11 @@ export function update_property(stream_id, property, value, other_values) {
|
||||
stream_color.update_stream_color(sub, value, {update_historical: true});
|
||||
break;
|
||||
case "in_home_view":
|
||||
stream_muting.update_is_muted(sub, !value);
|
||||
// Legacy in_home_view events are only sent as duplicates of
|
||||
// modern is_muted events, which we handle below.
|
||||
break;
|
||||
case "is_muted":
|
||||
stream_muting.update_is_muted(sub, value);
|
||||
stream_list.refresh_muted_or_unmuted_stream(sub);
|
||||
recent_topics_ui.complete_rerender();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user