Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-02 15:09:12 +07:00
parent dc28193531
commit bcd10fbe27
4 changed files with 6 additions and 3 deletions

View file

@ -17,7 +17,7 @@ sealed class WalletConnectAction : Action {
val wcUri: String,
val source: SourceType,
) : WalletConnectAction() {
enum class SourceType { QR, DEEPLINK, ETC }
enum class SourceType { QR, DEEPLINK, CLIPBOARD, ETC }
}
data class DisconnectSession(val topic: String) : WalletConnectAction()

View file

@ -17,7 +17,9 @@ object ClipboardOrScanQrDialog {
setTitle(context.getString(R.string.common_select_action))
setMessage(context.getText(R.string.wallet_connect_clipboard_alert))
setPositiveButton(context.getText(R.string.wallet_connect_paste_from_clipboard)) { _, _ ->
store.dispatch(WalletConnectAction.OpenSession(wcUri, WalletConnectAction.OpenSession.SourceType.ETC))
store.dispatch(
WalletConnectAction.OpenSession(wcUri, WalletConnectAction.OpenSession.SourceType.CLIPBOARD),
)
}
setNegativeButton(context.getText(R.string.wallet_connect_scan_new_code)) { _, _ ->
store.dispatchNavigationAction {