Remove notificationMode to userDefinedNotificationMode to match SDK name.

This commit is contained in:
Benoit Marty 2024-01-19 16:46:14 +01:00 committed by Benoit Marty
parent ecb000b8ed
commit 782f73fb7c
11 changed files with 15 additions and 15 deletions

View file

@ -42,7 +42,7 @@ data class RoomSummaryDetails(
val lastMessage: RoomMessage?,
val unreadNotificationCount: Int,
val inviter: RoomMember? = null,
val notificationMode: RoomNotificationMode? = null,
val userDefinedNotificationMode: RoomNotificationMode? = null,
val hasRoomCall: Boolean = false,
val isDm: Boolean = false,
) {

View file

@ -38,7 +38,7 @@ class RoomSummaryDetailsFactory(private val roomMessageFactory: RoomMessageFacto
unreadNotificationCount = roomInfo.notificationCount.toInt(),
lastMessage = latestRoomMessage,
inviter = roomInfo.inviter?.let(RoomMemberMapper::map),
notificationMode = roomInfo.userDefinedNotificationMode?.let(RoomNotificationSettingsMapper::mapMode),
userDefinedNotificationMode = roomInfo.userDefinedNotificationMode?.let(RoomNotificationSettingsMapper::mapMode),
hasRoomCall = roomInfo.hasRoomCall,
isDm = roomInfo.isDirect && roomInfo.activeMembersCount.toLong() == 2L,
)

View file

@ -65,7 +65,7 @@ fun aRoomSummaryDetails(
avatarUrl = avatarUrl,
lastMessage = lastMessage,
unreadNotificationCount = unreadNotificationCount,
notificationMode = notificationMode
userDefinedNotificationMode = notificationMode
)
fun aRoomMessage(