remove force unwraps

This commit is contained in:
2026-06-28 08:47:05 +07:00
parent d5ea5570b6
commit aee42f11c5
3 changed files with 23 additions and 13 deletions

View File

@@ -741,7 +741,7 @@ fun ChatRoom(room: Room, onClick: () -> Unit) {
supportingContent = {
if (!room.lastMessage.isNullOrBlank()) {
Text(
text = room.lastMessage!!,
text = room.lastMessage ?: "",
style = MaterialTheme.typography.bodyMedium,
overflow = TextOverflow.Ellipsis,
maxLines = 1,