Map roomInfo.numUnreadNotifications to RoomSummaryDetails.numUnreadNotifications

This commit is contained in:
Benoit Marty 2024-01-25 15:00:43 +01:00
parent 203262a5ca
commit 6ea76d9acd
7 changed files with 11 additions and 0 deletions

View file

@ -61,6 +61,7 @@ fun aRoomSummaryDetails(
lastMessage: RoomMessage? = aRoomMessage(),
numUnreadMentions: Int = 0,
numUnreadMessages: Int = 0,
numUnreadNotifications: Int = 0,
notificationMode: RoomNotificationMode? = null,
inviter: RoomMember? = null,
canonicalAlias: String? = null,
@ -74,6 +75,7 @@ fun aRoomSummaryDetails(
lastMessage = lastMessage,
numUnreadMentions = numUnreadMentions,
numUnreadMessages = numUnreadMessages,
numUnreadNotifications = numUnreadNotifications,
userDefinedNotificationMode = notificationMode,
inviter = inviter,
canonicalAlias = canonicalAlias,