-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mute user: Mark as read new messages.
Messages sent by muted users are marked as read as soon as they are sent (or, more accurately, while creating the database entries itself), regardless of type (stream/huddle/PM). ede73ee, makes it easy to pass a list to `do_send_messages` containing user-ids for whom the message should be marked as read. We add the contents of this list to the set of muter IDs, and then pass it on to `create_user_messages`. This benefits from the caching behaviour of `get_muting_users` and should not cause performance issues long term. The consequence is that messages sent by muted users will not contribute to unread counts and notifications. This commit does not affect the unread messages (if any) present just before muting, but only handles subsequent messages. Old unreads will be handled in further commits.
- Loading branch information
1 parent
b140c17
commit 2f56f8d
Showing
7 changed files
with
60 additions
and
16 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
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
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