mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Move last message timestamp formatting to the room summary provider and its background processing queue
This commit is contained in:
committed by
Stefan Ceriu
parent
1433100535
commit
413b433806
@@ -229,10 +229,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
room.name = details.name
|
||||
room.hasUnreads = details.unreadNotificationCount > 0
|
||||
room.lastMessage = details.lastMessage
|
||||
|
||||
if let lastMessageTimestamp = details.lastMessageTimestamp {
|
||||
room.timestamp = lastMessageTimestamp.formattedMinimal()
|
||||
}
|
||||
room.timestamp = details.lastMessageFormattedTimestamp
|
||||
|
||||
roomsForIdentifiers[details.id] = room
|
||||
|
||||
|
||||
Reference in New Issue
Block a user