Fixes slow down when the last message on chat is a base64 image.

This commit is contained in:
Vitor Pamplona
2024-08-15 16:02:28 -04:00
parent bd18d4b4b2
commit c82c594926

View File

@@ -187,7 +187,7 @@ private fun ChannelRoomCompose(
} else if (noteEvent is ChannelMetadataEvent) {
"${stringRes(R.string.channel_information_changed_to)} "
} else {
noteEvent?.content()
noteEvent?.content()?.take(200)
}
val hasNewMessages = remember { mutableStateOf<Boolean>(false) }