Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "followed" user-topic state, as synonym of "unmuted" #5774

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Oct 4, 2023

Fixes: #5769

This resolves the regression we would otherwise have when the server goes ahead with sending these. Our fallback behavior for values we don't recognize in the user_topic visibility policy (https://zulip.com/api/get-events#user_topic) is to treat them as not having a policy for that topic; which means that a followed topic in a muted stream would be treated as still muted, instead of unmuted.

There's still more to be done to fully implement this feature; that's tracked separately at #5770 and #5771.

This enum value now appears in the API docs.
This way we consistently maintain the invariant that we only see
valid values.
In all the places we currently consult the user's visibility policy
for a topic, treating "followed" as "unmuted" will give it the most
accurate behavior from among what we currently implement.

In particular this makes it so that when the stream is muted, the
topic will correctly be treated as not muted.

There's still more we could do to fully implement this feature:
notably, surface in the UI what the current state is, and give the
option to set a topic to followed.  But this is an important start.

Fixes: zulip#5769
@gnprice gnprice added P1 high-priority server release goal Things we should try to coordinate with a major Zulip Server release. labels Oct 4, 2023
@chrisbobbe chrisbobbe merged commit 36f4466 into zulip:main Oct 5, 2023
1 check passed
@chrisbobbe
Copy link
Contributor

Thanks, LGTM! Merged.

@gnprice gnprice deleted the pr-follow-topic branch October 5, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 high-priority server release goal Things we should try to coordinate with a major Zulip Server release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support followed topics in muted streams
2 participants