Skip to content

msglist: Update message list on muting/unmuting a channel - #2423

Open
chrisbobbe wants to merge 3 commits into
zulip:mainfrom
chrisbobbe:msglist-channel-mute-1255
Open

msglist: Update message list on muting/unmuting a channel#2423
chrisbobbe wants to merge 3 commits into
zulip:mainfrom
chrisbobbe:msglist-channel-mute-1255

Conversation

@chrisbobbe

Copy link
Copy Markdown
Collaborator

Fixes #1255.

When a channel is muted, remove its newly-hidden messages from any combined-feed message list; when unmuted, refetch from scratch, the same way we handle a topic getting unmuted.


(Prompted by wanting to demo some Zulip development in person at the Recurse Center—I'll likely follow this soon with a PR to add a mute/unmute-channel button in the channel action sheet, #347.)

chrisbobbe and others added 3 commits August 13, 2026 13:51
This type describes an effect on the results of isTopicVisible
and isTopicVisibleInChannel.  Currently those effects only come
from user_topic events, but soon (for zulip#1255) a channel mute or
unmute will have the same kind of effect.  Name the type after
those methods, rather than after the events that cause the effects.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Soon (for zulip#1255) an event other than a user_topic event -- namely a
subscription-update event for a channel's mutedness -- will also be
able to affect the results of isTopicVisible.  Rather than add a
separate method with an unwieldy name for that cause, prepare this
method to take any kind of event, answering "none" for the kinds
that don't affect the results.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Fixes zulip#1255.

When a channel is muted, remove its newly-hidden messages from any
combined-feed message list; when unmuted, refetch from scratch,
the same way we handle a topic getting unmuted.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chrisbobbe chrisbobbe added the maintainer review PR ready for review by Zulip maintainers label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

msglist: Update message list on muting/unmuting a channel

2 participants