1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3060 Space-level chat | Fix | fix emoji markup in bubbles (#2012)

This commit is contained in:
Evgenii Kozlov 2025-01-18 14:48:31 +01:00 committed by Evgenii Kozlov
parent 56b8adaa7d
commit 46d08a2f06
2 changed files with 3 additions and 0 deletions

View file

@ -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 }
}
}

View file

@ -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(