From 20896cc44b124df6035d1acd53b76787ffa3139c Mon Sep 17 00:00:00 2001 From: Diogo Date: Sat, 21 Sep 2024 21:43:54 +0100 Subject: [PATCH] fix date on chats for previous days --- .../chat/simplex/common/views/chatlist/ChatPreviewView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatPreviewView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatPreviewView.kt index 775f831c76..063e191bf9 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatPreviewView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatPreviewView.kt @@ -332,7 +332,7 @@ fun ChatPreviewView( chatPreviewTitle() } Spacer(Modifier.width(8.sp.toDp())) - val ts = chat.chatItems.lastOrNull()?.timestampText ?: getTimestampText(chat.chatInfo.chatTs) + val ts = getTimestampText(chat.chatItems.lastOrNull()?.meta?.itemTs ?: chat.chatInfo.chatTs) ChatListTimestampView(ts) } Row(Modifier.heightIn(min = 46.sp.toDp()).fillMaxWidth()) {