Rename eventSink to handleEvent

This commit is contained in:
Benoit Marty 2025-11-07 12:23:02 +01:00
parent e0f0dbec96
commit 34a986d8f2

View file

@ -111,7 +111,7 @@ class RoomMemberDetailsPresenter(
} }
} }
fun eventSink(event: UserProfileEvents) { fun handleEvent(event: UserProfileEvents) {
when (event) { when (event) {
UserProfileEvents.WithdrawVerification -> coroutineScope.launch { UserProfileEvents.WithdrawVerification -> coroutineScope.launch {
encryptionService.withdrawVerification(roomMemberId) encryptionService.withdrawVerification(roomMemberId)
@ -129,7 +129,7 @@ class RoomMemberDetailsPresenter(
avatarUrl = roomUserAvatar ?: userProfileState.avatarUrl, avatarUrl = roomUserAvatar ?: userProfileState.avatarUrl,
verificationState = verificationState, verificationState = verificationState,
snackbarMessage = snackbarMessage, snackbarMessage = snackbarMessage,
eventSink = ::eventSink eventSink = ::handleEvent,
) )
} }
} }