Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cherry-pick] fix(WalletConnect): Fixing disconnect notifications #15973

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

alexjba
Copy link
Contributor

@alexjba alexjba commented Aug 2, 2024

What does the PR do

closes #15898

The disconnect notifications were operating on WalletConnectService.currentSessionProposal. This object stores the current session object on connect, but it's not necessarily the same session the user wants to disconnect. To fix this I'm getting the active sessions from status-go when the disconnect request is received (from Status or dapp). If the topic matches to any connection topic owned by the users accounts we'll show a notification.

(cherry picked from commit fea4e8e)

@status-im-auto
Copy link
Member

status-im-auto commented Aug 2, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ dbc492f #1 2024-08-02 11:40:23 ~6 min macos/aarch64 🍎dmg
✔️ dbc492f #1 2024-08-02 11:40:23 ~7 min tests/nim 📄log
✔️ dbc492f #1 2024-08-02 11:44:37 ~11 min macos/x86_64 🍎dmg
✔️ dbc492f #1 2024-08-02 11:46:50 ~13 min tests/ui 📄log
✔️ dbc492f #1 2024-08-02 11:48:56 ~15 min linux-nix/x86_64 📦tgz
✔️ dbc492f #1 2024-08-02 11:50:44 ~17 min linux/x86_64 📦tgz
✔️ dbc492f #1 2024-08-02 12:03:06 ~29 min windows/x86_64 💿exe
✔️ 1b24f6e #2 2024-08-07 08:23:24 ~4 min macos/aarch64 🍎dmg
✔️ 1b24f6e #2 2024-08-07 08:24:40 ~5 min tests/nim 📄log
✔️ 1b24f6e #2 2024-08-07 08:27:09 ~8 min macos/x86_64 🍎dmg
✔️ 1b24f6e #2 2024-08-07 08:31:58 ~13 min tests/ui 📄log
✔️ 1b24f6e #2 2024-08-07 08:33:48 ~15 min linux-nix/x86_64 📦tgz
✔️ 1b24f6e #2 2024-08-07 08:33:48 ~15 min linux/x86_64 📦tgz
✔️ 1b24f6e #2 2024-08-07 08:46:01 ~27 min windows/x86_64 💿exe

@alexjba alexjba marked this pull request as ready for review August 7, 2024 08:16
The disconnect notifications were operating on `WalletConnectService.currentSessionProposal`. This object stores the current session object on connect, but it's not necessarily the same session the user wants to disconnect.
To fix this I'm getting the active sessions from status-go when the disconnect request is received (from Status or dapp). If the topic matches to any connection topic owned by the users accounts we'll show a notification.

(cherry picked from commit fea4e8e)
@alexjba alexjba force-pushed the fix/dapps-notifications-backport branch from dbc492f to 1b24f6e Compare August 7, 2024 08:18
@alexjba alexjba merged commit 8338481 into master Aug 8, 2024
9 checks passed
@alexjba alexjba deleted the fix/dapps-notifications-backport branch August 8, 2024 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dApps - Disconnected from notification is missing dapp name
4 participants