Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

display_recipient: Add a comment on a strange use-case.

Alex Vandivere10bbb287d90
diff --git a/zerver/lib/display_recipient.py b/zerver/lib/display_recipient.py
index 294c33ec1ec..ee52be0ede9 100644
--- a/zerver/lib/display_recipient.py
+++ b/zerver/lib/display_recipient.py
@@ -226,6 +226,9 @@ def get_recipient_ids(
recipient_type_str = "stream"
to = [recipient.type_id]
else:
+ # We're somewhat weirdly using the display recipient cache,
+ # for the fact that it is a probably-cached lookup which knows
+ # the user-ids which are members of a group DM.
recipient_type_str = "private"
to = []
recipients = get_display_recipient(recipient)