mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Use last message timestamp in conversation view instead of chatroom last update time
This commit is contained in:
parent
7f16eb7ec2
commit
8731387351
1 changed files with 4 additions and 0 deletions
|
|
@ -243,6 +243,8 @@ class ConversationModel: ObservableObject, Identifiable {
|
|||
+ (lastMessage!.contents.first(where: {$0.isText == true})?.utf8Text ?? (lastMessage!.contents.first(where: {$0.isFile == true || $0.isFileTransfer == true})?.name ?? ""))
|
||||
|
||||
let lastMessageIsOutgoingTmp = lastMessage?.isOutgoing ?? false
|
||||
|
||||
let lastUpdateTimeTmp = lastMessage?.time ?? chatRoom.lastUpdateTime
|
||||
|
||||
let lastMessageStateTmp = lastMessage?.state.rawValue ?? 0
|
||||
|
||||
|
|
@ -250,6 +252,8 @@ class ConversationModel: ObservableObject, Identifiable {
|
|||
self.lastMessageText = lastMessageTextTmp
|
||||
|
||||
self.lastMessageIsOutgoing = lastMessageIsOutgoingTmp
|
||||
|
||||
self.lastUpdateTime = lastUpdateTimeTmp
|
||||
|
||||
self.lastMessageState = lastMessageStateTmp
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue