Let MatrixClient exposes val instead of fun for the services.
This commit is contained in:
parent
1ac524fc08
commit
67c6a1bd5f
27 changed files with 129 additions and 155 deletions
|
|
@ -143,12 +143,12 @@ class RoomDetailsPresenter(
|
|||
}
|
||||
RoomDetailsEvent.MuteNotification -> {
|
||||
scope.launch(dispatchers.io) {
|
||||
client.notificationSettingsService().muteRoom(room.roomId)
|
||||
notificationSettingsService.muteRoom(room.roomId)
|
||||
}
|
||||
}
|
||||
RoomDetailsEvent.UnmuteNotification -> {
|
||||
scope.launch(dispatchers.io) {
|
||||
client.notificationSettingsService().unmuteRoom(room.roomId, isEncrypted, room.isOneToOne)
|
||||
notificationSettingsService.unmuteRoom(room.roomId, isEncrypted, room.isOneToOne)
|
||||
}
|
||||
}
|
||||
is RoomDetailsEvent.SetFavorite -> scope.setFavorite(event.isFavorite)
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class RoomDetailsPresenterTest {
|
|||
client = matrixClient,
|
||||
room = room,
|
||||
featureFlagService = featureFlagService,
|
||||
notificationSettingsService = matrixClient.notificationSettingsService(),
|
||||
notificationSettingsService = matrixClient.notificationSettingsService,
|
||||
roomMembersDetailsPresenterFactory = roomMemberDetailsPresenterFactory,
|
||||
leaveRoomPresenter = { leaveRoomState },
|
||||
roomCallStatePresenter = { aStandByCallState() },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue