forked from zulip/zulip-terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
model: Skip muted streams and topics in getting next unread topic.
Logic originally developed by Aman Agrawal (amanagr) in zulip#442. Updated to take into account: - already-added (slightly different) is_muted[stream|topic] methods - migration of get_next_unread_topic into model (simplifying tests) Also ensure the current behavior is maintained for now by explicitly sorting the unread counts, which previous relied upon the initial and subsequent data being ordered. Tests added. Co-authored by: Aman Agrawal <f2016561@pilani.bits-pilani.ac.in>
- Loading branch information
Showing
2 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters