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:
parent
56b8adaa7d
commit
46d08a2f06
2 changed files with 3 additions and 0 deletions
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue