fix(WalletConnect): Store web cookies and cache to a dedicated folder for each account

WalletConnect cannot operate on shared cookies in between accounts. This commit will split the cookies and cache in different folders with the user public key as folder name.
This commit is contained in:
Alex Jbanca 2024-08-13 12:13:54 +03:00 committed by Alex Jbanca
parent 327eca96cb
commit 4d963031e9
3 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@ Item {
required property url url
required property var webChannelObjects
property string profileName: "Default"
// Used to control the loading of the web engine
property bool active: false
@ -48,6 +49,7 @@ Item {
url: root.url
webChannel: statusChannel
profile.storageName: root.profileName
onLoadingChanged: function(loadRequest) {
switch(loadRequest.status) {

View File

@ -17,6 +17,7 @@ WalletConnectSDKBase {
// Enable the WalletConnect SDK
property alias enableSdk: loader.active
property alias userUID: loader.profileName
readonly property alias url: loader.url
implicitWidth: 1

View File

@ -2162,7 +2162,7 @@ Item {
wcSDK: WalletConnectSDK {
enableSdk: WalletStore.RootStore.walletSectionInst.walletReady
userUID: appMain.rootStore.profileSectionStore.profileStore.pubkey
projectId: WalletStore.RootStore.appSettings.walletConnectProjectID
}
store: DAppsStore {