mute user: Add some comments on message fetch.

These explain why we don't consider user mutes
in message fetching/unread data.
This commit is contained in:
Abhijeet Prasad Bodas
2021-02-05 10:28:44 +05:30
committed by Tim Abbott
parent 8b098b95bb
commit 2b9f2cc8ff
2 changed files with 15 additions and 0 deletions

View File

@@ -1010,6 +1010,9 @@ def extract_unread_data_from_um_rows(
if topic_mute_checker(recipient_id, topic):
return True
# Messages sent by muted users are never unread, so we don't
# need any logic related to muted users here.
return False
huddle_cache: Dict[int, str] = {}