fix to not show null if no last message of thread exists

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe
2025-07-11 23:12:00 +02:00
parent d25e85e3f2
commit 59ced8843e

View File

@ -212,8 +212,8 @@ fun ThreadsList(
ThreadRow(
roomToken = roomToken,
threadId = threadInfo.thread!!.id,
firstLine = threadInfo.first?.message.toString(),
secondLine = threadInfo.last?.message.toString(),
firstLine = threadInfo.first?.message.orEmpty(),
secondLine = threadInfo.last?.message.orEmpty(),
date = getLastActivityDate(threadInfo), // TODO: replace with value from api when available
imageRequest = imageRequest,
onClick = onThreadClick