Skip to content

Conversation

@chrisbobbe
Copy link
Collaborator

Instead of just listening to PerAccountStore and (via an ancestor widget) a MessageListView.

Issue #370 is relevant here -- "Maintain total unread counts efficiently". The button causes linear scans through Unreads each time it rebuilds, and ideally we'd avoid that, especially since now it'll rebuild in more cases than it was before. I think the additional cases aren't very many, though: I've thought of just one kind of Zulip event that would cause Unreads but not PerAccountStore and MessageListView to notify listeners, and I added a test exercising that.

Instead of just listening to PerAccountStore and (via an ancestor
widget) a MessageListView.

Issue zulip#370 is relevant here -- "Maintain total unread counts
efficiently". The button causes linear scans through Unreads each
time it rebuilds, and ideally we'd avoid that, especially since now
it'll rebuild in more cases than it was before. I think the
additional cases aren't very many, though: I've thought of just one
kind of Zulip event that would cause Unreads but not PerAccountStore
and MessageListView to notify listeners, and I added a test
exercising that.
@chrisbobbe chrisbobbe added the maintainer review PR ready for review by Zulip maintainers label Dec 6, 2025
Copy link
Member

@rajveermalviya rajveermalviya left a comment

Choose a reason for hiding this comment

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

Thanks @chrisbobbe! LGTM, moving over to Greg's review.

@rajveermalviya rajveermalviya added integration review Added by maintainers when PR may be ready for integration and removed maintainer review PR ready for review by Zulip maintainers labels Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration review Added by maintainers when PR may be ready for integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants