mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Show the date on a room when the last message is older than today. (#484)
* Format the last message date correctly. * Update room cell layout - fixes an issue where the longer the date got the smaller the last message width was.
This commit is contained in:
@@ -261,7 +261,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
}
|
||||
|
||||
if let lastMessageTimestamp = details.lastMessageTimestamp {
|
||||
room.timestamp = lastMessageTimestamp.formatted(date: .omitted, time: .shortened)
|
||||
room.timestamp = lastMessageTimestamp.formattedMinimal()
|
||||
}
|
||||
|
||||
roomsForIdentifiers[details.id] = room
|
||||
|
||||
Reference in New Issue
Block a user