Skip to content

Commit

Permalink
Fixes slow down when the last message on chat is a base64 image.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Aug 15, 2024
1 parent bd18d4b commit c82c594
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit c82c594

Please sign in to comment.