From 7438af64c6499657fa965ec6bf1de2eff298e7a2 Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Fri, 17 Jan 2025 17:35:58 +0100 Subject: [PATCH] DROID-3060 fix --- .../anytypeio/anytype/feature_chats/presentation/ChatView.kt | 1 + .../java/com/anytypeio/anytype/feature_chats/ui/ChatBubble.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/presentation/ChatView.kt b/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/presentation/ChatView.kt index 0cf5d163b2..21582bf3ff 100644 --- a/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/presentation/ChatView.kt +++ b/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/presentation/ChatView.kt @@ -39,6 +39,7 @@ sealed interface ChatView { val underline = styles.any { it.type == Block.Content.Text.Mark.Type.UNDERLINE } val link = styles.find { it.type == Block.Content.Text.Mark.Type.LINK } val isCode = styles.any { it.type == Block.Content.Text.Mark.Type.KEYBOARD } + val emoji = styles.find { it.type == Block.Content.Text.Mark.Type.EMOJI } } } diff --git a/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/ui/ChatBubble.kt b/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/ui/ChatBubble.kt index af90b7e11f..c2b9632945 100644 --- a/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/ui/ChatBubble.kt +++ b/feature-chats/src/main/java/com/anytypeio/anytype/feature_chats/ui/ChatBubble.kt @@ -241,6 +241,8 @@ fun Bubble( ) { append(part.part) } + } else if (part.emoji != null && part.emoji.param != null) { + append(part.emoji.param) } else { withStyle( style = SpanStyle(