mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
UserProfileEvents -> UserProfileEvent
This commit is contained in:
+9
-9
@@ -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
|
||||
}
|
||||
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user