mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
stream_muting: Refactor to not use message_lists.home.
This commit is contained in:
@@ -7,10 +7,14 @@ import * as unread_ui from "./unread_ui";
|
|||||||
export function update_is_muted(sub, value) {
|
export function update_is_muted(sub, value) {
|
||||||
sub.is_muted = value;
|
sub.is_muted = value;
|
||||||
|
|
||||||
// TODO: In theory, other message lists whose behavior depends on
|
for (const msg_list of message_lists.all_rendered_message_lists()) {
|
||||||
// stream muting might need to be live-updated as well, but the
|
// TODO: In theory, other message lists whose behavior depends on
|
||||||
// current _all_items design doesn't have a way to support that.
|
// stream muting might need to be live-updated as well, but the
|
||||||
message_lists.home.update_muting_and_rerender();
|
// current _all_items design doesn't have a way to support that.
|
||||||
|
if (msg_list.data.filter.is_in_home()) {
|
||||||
|
msg_list.update_muting_and_rerender();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Since muted streams aren't counted in visible unread
|
// Since muted streams aren't counted in visible unread
|
||||||
// counts, we need to update the rendering of them.
|
// counts, we need to update the rendering of them.
|
||||||
|
|||||||
Reference in New Issue
Block a user