From dc1f407fd1731a9a452f556eebcb3e7a2a65dec6 Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Mon, 24 Apr 2023 14:02:28 +0300 Subject: [PATCH] fix(os-notifications): Display image emoji for sticker in notification Fixes: #10294 --- src/app/modules/main/chat_section/module.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/modules/main/chat_section/module.nim b/src/app/modules/main/chat_section/module.nim index e1444a1179..83384bffb2 100644 --- a/src/app/modules/main/chat_section/module.nim +++ b/src/app/modules/main/chat_section/module.nim @@ -930,7 +930,7 @@ method onNewMessagesReceived*(self: Module, sectionIdMsgBelongsTo: string, chatI let communityChats = self.controller.getCommunityById(chatDetails.communityId).chats let renderedMessageText = self.controller.getRenderedText(message.parsedText, communityChats) var plainText = singletonInstance.utils.plainText(renderedMessageText) - if ContentType(message.contentType) == ContentType.Image and len(plainText) == 0: + if ContentType(message.contentType) == ContentType.Sticker or (ContentType(message.contentType) == ContentType.Image and len(plainText) == 0): plainText = "🖼️" var notificationTitle = contactDetails.defaultDisplayName