Merge pull request #5672 from element-hq/feature/bma/handleEvents

Always use the handleEvent(s) function the same way.
This commit is contained in:
Benoit Marty 2025-11-04 11:20:22 +01:00 committed by GitHub
commit 2b08cb77ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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,
)
}