Click on userId / room alias to copy value to clipboard. (#4549)

This commit is contained in:
Benoit Marty 2025-04-08 09:23:02 +02:00 committed by GitHub
parent 606910e625
commit ad9997b8ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 114 additions and 22 deletions

View file

@ -120,8 +120,9 @@ class UserProfilePresenter @AssistedInject constructor(
UserProfileEvents.ClearStartDMState -> {
startDmActionState.value = AsyncAction.Uninitialized
}
// Do nothing for withdrawing verification as it's handled by the RoomMemberDetailsPresenter if needed
UserProfileEvents.WithdrawVerification -> Unit
// Do nothing for other event as they are handled by the RoomMemberDetailsPresenter if needed
UserProfileEvents.WithdrawVerification,
is UserProfileEvents.CopyToClipboard -> Unit
}
}
@ -136,6 +137,7 @@ class UserProfilePresenter @AssistedInject constructor(
isCurrentUser = isCurrentUser,
dmRoomId = dmRoomId,
canCall = canCall,
snackbarMessage = null,
eventSink = ::handleEvents
)
}