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.
helper/model: Fix wildcard_mentions not showing in mentions.
This commit fixes a small bug that prevented messages with wildcard_mentions from appearing in the all_mentions narrow. The server defines several wildcard_mentions like @all/@everyone /@stream, which are not marked with 'mentions' in the message flags, but rather 'wildcard_mentions'. The bugfix now checks for this flag in the message response from server and appropriately categorizes these messages as mentioned and also updates the count in the respective narrows. Also fixes a related expression in model's current_narrow_contains_message function, that did not check for 'wildcard_mentioned' in message flags. Tests amended. Fixes zulip#1037.
- Loading branch information
Showing
3 changed files
with
21 additions
and
8 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
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