mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	recent_senders: Fix twice sent user ids in PM to self case.
This caused double user avatar to appear in recent conversations for when showing user PM to self.
This commit is contained in:
		@@ -347,4 +347,14 @@ test("process_pms", () => {
 | 
			
		||||
        participants: [],
 | 
			
		||||
        non_participants: [],
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    rs.process_private_message({
 | 
			
		||||
        to_user_ids: "1",
 | 
			
		||||
        sender_id: sender1,
 | 
			
		||||
        id: 4,
 | 
			
		||||
    });
 | 
			
		||||
    assert.deepEqual(rs.get_pm_recent_senders("1"), {
 | 
			
		||||
        participants: [1],
 | 
			
		||||
        non_participants: [],
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user