mirror of
https://github.com/nextcloud/talk-android
synced 2025-08-19 01:45:58 +01:00
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:
parent
d25e85e3f2
commit
59ced8843e
@ -212,8 +212,8 @@ fun ThreadsList(
|
|||||||
ThreadRow(
|
ThreadRow(
|
||||||
roomToken = roomToken,
|
roomToken = roomToken,
|
||||||
threadId = threadInfo.thread!!.id,
|
threadId = threadInfo.thread!!.id,
|
||||||
firstLine = threadInfo.first?.message.toString(),
|
firstLine = threadInfo.first?.message.orEmpty(),
|
||||||
secondLine = threadInfo.last?.message.toString(),
|
secondLine = threadInfo.last?.message.orEmpty(),
|
||||||
date = getLastActivityDate(threadInfo), // TODO: replace with value from api when available
|
date = getLastActivityDate(threadInfo), // TODO: replace with value from api when available
|
||||||
imageRequest = imageRequest,
|
imageRequest = imageRequest,
|
||||||
onClick = onThreadClick
|
onClick = onThreadClick
|
||||||
|
Loading…
Reference in New Issue
Block a user