message-text: Remove 'emoji' class on non-emoji messages

This commit is contained in:
Kévin Commaille 2022-01-20 12:20:41 +01:00
parent fe2ff7c79a
commit 50f3d1002e
No known key found for this signature in database
GPG key ID: DD507DAE96E8245C

View file

@ -218,6 +218,8 @@ impl MessageText {
if EMOJI_REGEX.is_match(text) { if EMOJI_REGEX.is_match(text) {
child.add_css_class("emoji"); child.add_css_class("emoji");
} else {
child.remove_css_class("emoji");
} }
if use_markup { if use_markup {