Update notification settings service interface to match rust SDK

This commit is contained in:
yostyle 2023-08-17 11:38:41 +02:00
parent 1c4198db5a
commit 85dd36a681
6 changed files with 22 additions and 15 deletions

View file

@ -106,7 +106,7 @@ class RoomDetailsPresenter @Inject constructor(
}
RoomDetailsEvent.UnmuteNotification -> {
scope.launch(dispatchers.io) {
client.notificationSettingsService().unmuteRoom(room.roomId, room.isEncrypted, room.joinedMemberCount.toULong())
client.notificationSettingsService().unmuteRoom(room.roomId, room.isEncrypted, room.activeMemberCount)
}
}
}

View file

@ -87,7 +87,7 @@ class RoomNotificationSettingsPresenter @Inject constructor(
private fun CoroutineScope.getDefaultRoomNotificationMode(defaultRoomNotificationMode: MutableState<RoomNotificationMode?>) = launch {
defaultRoomNotificationMode.value = notificationSettingsService.getDefaultRoomNotificationMode(
room.isEncrypted,
room.joinedMemberCount.toULong()
room.activeMemberCount
).getOrThrow()
}