Move last message timestamp formatting to the room summary provider and its background processing queue

This commit is contained in:
Stefan Ceriu
2023-01-26 13:38:51 +02:00
committed by Stefan Ceriu
parent 1433100535
commit 413b433806
6 changed files with 18 additions and 20 deletions
@@ -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