display_recipient: Eliminate raw_display_recipient from message dicts.

This was used as a helper to construct the final display_recipient when
fetching messages. With the new mechanism of constructing
display_recipient by fetching appropriate users/streams from the
database and cache, this shouldn't be needed anymore.
This commit is contained in:
Mateusz Mandera
2019-08-19 02:12:51 +02:00
committed by Tim Abbott
parent b25abf3de9
commit 26f7dd09ce
6 changed files with 7 additions and 16 deletions

View File

@@ -212,7 +212,6 @@ class MessageDict:
del obj['sender_avatar_source']
del obj['sender_avatar_version']
del obj['raw_display_recipient']
del obj['recipient_type']
del obj['recipient_type_id']
del obj['sender_is_mirror_dummy']
@@ -332,12 +331,6 @@ class MessageDict:
obj[TOPIC_NAME] = topic_name
obj['sender_realm_id'] = sender_realm_id
obj['raw_display_recipient'] = get_display_recipient_by_id(
recipient_id,
recipient_type,
recipient_type_id
)
obj[TOPIC_LINKS] = bugdown.topic_links(sender_realm_id, topic_name)
if last_edit_time is not None: