UserProfileEvents -> UserProfileEvent

This commit is contained in:
Benoit Marty
2026-08-25 10:28:49 +02:00
parent 51a4704854
commit 650f20d6ba
12 changed files with 91 additions and 91 deletions
@@ -8,13 +8,13 @@
package io.element.android.features.userprofile.api
sealed interface UserProfileEvents {
data object StartDM : UserProfileEvents
data object ClearStartDMState : UserProfileEvents
data class BlockUser(val needsConfirmation: Boolean = false) : UserProfileEvents
data class UnblockUser(val needsConfirmation: Boolean = false) : UserProfileEvents
data object ClearBlockUserError : UserProfileEvents
data object ClearConfirmationDialog : UserProfileEvents
data object WithdrawVerification : UserProfileEvents
data class CopyToClipboard(val text: String) : UserProfileEvents
sealed interface UserProfileEvent {
data object StartDM : UserProfileEvent
data object ClearStartDMState : UserProfileEvent
data class BlockUser(val needsConfirmation: Boolean = false) : UserProfileEvent
data class UnblockUser(val needsConfirmation: Boolean = false) : UserProfileEvent
data object ClearBlockUserError : UserProfileEvent
data object ClearConfirmationDialog : UserProfileEvent
data object WithdrawVerification : UserProfileEvent
data class CopyToClipboard(val text: String) : UserProfileEvent
}
@@ -28,7 +28,7 @@ data class UserProfileState(
val canCall: Boolean,
val snackbarMessage: SnackbarMessage?,
val displayedStatus: DisplayedStatus?,
val eventSink: (UserProfileEvents) -> Unit
val eventSink: (UserProfileEvent) -> Unit
) {
enum class ConfirmationDialog {
Block,