From 50f3d1002ef49ec19385808d1f64f3f08e7ced43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 20 Jan 2022 12:20:41 +0100 Subject: [PATCH] message-text: Remove 'emoji' class on non-emoji messages --- src/session/content/room_history/message_row/text.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session/content/room_history/message_row/text.rs b/src/session/content/room_history/message_row/text.rs index 3477a1bb..26281aa3 100644 --- a/src/session/content/room_history/message_row/text.rs +++ b/src/session/content/room_history/message_row/text.rs @@ -218,6 +218,8 @@ impl MessageText { if EMOJI_REGEX.is_match(text) { child.add_css_class("emoji"); + } else { + child.remove_css_class("emoji"); } if use_markup {