Always use the handleEvent(s) function the same way.

This commit is contained in:
Benoit Marty 2025-11-03 18:49:00 +01:00
parent f1389cb2ae
commit fdd4e2115c
20 changed files with 21 additions and 21 deletions

View file

@ -179,7 +179,7 @@ class RoomMemberListPresenter(
isSearchActive = isSearchActive,
canInvite = canInvite,
moderationState = roomModerationState,
eventSink = { handleEvents(it) },
eventSink = ::handleEvents,
)
}

View file

@ -135,7 +135,7 @@ class RoomNotificationSettingsPresenter(
setNotificationSettingAction = setNotificationSettingAction.value,
restoreDefaultAction = restoreDefaultAction.value,
displayMentionsOnlyDisclaimer = shouldDisplayMentionsOnlyDisclaimer,
eventSink = { handleEvents(it) },
eventSink = ::handleEvents,
)
}

View file

@ -100,7 +100,7 @@ class RolesAndPermissionsPresenter(
canDemoteSelf = canDemoteSelf.value,
changeOwnRoleAction = changeOwnRoleAction.value,
resetPermissionsAction = resetPermissionsAction.value,
eventSink = { handleEvent(it) },
eventSink = ::handleEvent,
)
}

View file

@ -112,7 +112,7 @@ class ChangeRoomPermissionsPresenter(
hasChanges = hasChanges,
saveAction = saveAction,
confirmExitAction = confirmExitAction,
eventSink = { handleEvent(it) }
eventSink = ::handleEvent,
)
}