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

Simplify topic action sheet slightly #1182

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Dec 19, 2024

These are some small NFC followups on #1041, which I sketched last week while reviewing it but left aside while we were finishing last week's beta.

@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Dec 19, 2024
@gnprice gnprice requested a review from PIG208 December 19, 2024 21:55
Copy link
Member

@PIG208 PIG208 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This LGTM.

We always know the current visibility policy, so we can pass that
unconditionally.
This makes it a bit more transparent what each of these cases is
doing, by having fewer local abstractions with their own names.
Seeing a condition like `channelMuted != null`, it's not entirely
clear what it means for a "channel muted" value to be null.
We can express the point more directly as `subscription != null`,
and then consult `isMuted` on the subscription.
@gnprice gnprice force-pushed the pr-topic-actions-nfc branch from a11fdad to cf26d30 Compare December 19, 2024 23:46
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.

2 participants