Remove RoomSummaryDetails.lastMessageTimestamp and replace by a getter on lastMessage

This commit is contained in:
Benoit Marty 2024-01-19 16:11:10 +01:00
parent be0da18a7b
commit 2c691d527b
8 changed files with 3 additions and 16 deletions

View file

@ -37,7 +37,6 @@ class RoomSummaryDetailsFactory(private val roomMessageFactory: RoomMessageFacto
avatarUrl = roomInfo.avatarUrl,
unreadNotificationCount = roomInfo.notificationCount.toInt(),
lastMessage = latestRoomMessage,
lastMessageTimestamp = latestRoomMessage?.originServerTs,
inviter = roomInfo.inviter?.let(RoomMemberMapper::map),
notificationMode = roomInfo.userDefinedNotificationMode?.let(RoomNotificationSettingsMapper::mapMode),
hasOngoingCall = roomInfo.hasRoomCall,