mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-02 20:57:26 +02:00
Fixes slow down when the last message on chat is a base64 image.
This commit is contained in:
@@ -187,7 +187,7 @@ private fun ChannelRoomCompose(
|
|||||||
} else if (noteEvent is ChannelMetadataEvent) {
|
} else if (noteEvent is ChannelMetadataEvent) {
|
||||||
"${stringRes(R.string.channel_information_changed_to)} "
|
"${stringRes(R.string.channel_information_changed_to)} "
|
||||||
} else {
|
} else {
|
||||||
noteEvent?.content()
|
noteEvent?.content()?.take(200)
|
||||||
}
|
}
|
||||||
|
|
||||||
val hasNewMessages = remember { mutableStateOf<Boolean>(false) }
|
val hasNewMessages = remember { mutableStateOf<Boolean>(false) }
|
||||||
|
Reference in New Issue
Block a user