Skip to content

channel: Maintain maps consistently when removing subscriptions #1479

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PIG208
Copy link
Member

@PIG208 PIG208 commented Apr 23, 2025

When a subscription is removed, the data in streams and streamsByName are left as instances of Subscription. This is inconsistent with the data store's assumption that unsubscribed channels should have plain ZulipStream instances.

This doesn't seem to have user-facing effects, though. The assertion errors only affect debug builds.

CZO discussion:
https://chat.zulip.org/#narrow/channel/48-mobile/topic/Unsubscribe.20then.20resubscribe.20to.20channel/with/2160241

@PIG208 PIG208 requested a review from chrisbobbe April 23, 2025 20:54
@PIG208 PIG208 added the maintainer review PR ready for review by Zulip maintainers label Apr 23, 2025
When a subscription is removed, the data in streams and streamsByName
are left as instances of `Subscription`.  This is inconsistent with the
data store's assumption that unsubscribed channels should have plain
`ZulipStream` instances.

This doesn't seem to have user-facing effects, though.  The assertion
errors only affect debug builds.

CZO discussion:
  https://chat.zulip.org/#narrow/channel/48-mobile/topic/Unsubscribe.20then.20resubscribe.20to.20channel/with/2160241
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