mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	notifications: Render emoji in desktop notifications.
In desktop notifications, we no longer display an emoji's status code. Instead, we show the corresponding Unicode emoji to render it properly in desktop notifications. For custom emojis, we continue to display their name. Fixes #30598. Co-authored-by: Tanmay Kumar <tnmdotkr@gmail.com> Co-authored-by: Tim Abbott <tabbott@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							a2c0d2d385
						
					
				
				
					commit
					d3c20f0b25
				
			@@ -67,3 +67,15 @@ run_test("potentially_collapse_quotes", ({override_rewire}) => {
 | 
			
		||||
        expected_texts,
 | 
			
		||||
    );
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
run_test("replace_emoji_name_with_emoji_unicode", () => {
 | 
			
		||||
    const $emoji = $.create("span").attr("class", "emoji emoji-1f419");
 | 
			
		||||
    $emoji.is = () => false;
 | 
			
		||||
 | 
			
		||||
    const octopus_emoji = "🐙";
 | 
			
		||||
    assert.equal(octopus_emoji, ui_util.convert_emoji_element_to_unicode($emoji));
 | 
			
		||||
 | 
			
		||||
    $emoji.attr("class", "emoji emoji-1f468-200d-1f373");
 | 
			
		||||
    const man_cook_emoji = "👨🍳";
 | 
			
		||||
    assert.equal(man_cook_emoji, ui_util.convert_emoji_element_to_unicode($emoji));
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user