mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 14:03:30 +00:00 
			
		
		
		
	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:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							b25abf3de9
						
					
				
				
					commit
					26f7dd09ce
				
			@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user