From aff718f300110a59a765658a1cfefb9c9c642d6a Mon Sep 17 00:00:00 2001 From: abhishek-01k Date: Tue, 15 Oct 2024 13:37:23 +0530 Subject: [PATCH 1/3] Fixed the unlock profile issue --- src/contexts/AppContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/AppContext.tsx b/src/contexts/AppContext.tsx index 15657b03cc..7ef381d0b3 100644 --- a/src/contexts/AppContext.tsx +++ b/src/contexts/AppContext.tsx @@ -489,7 +489,7 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => { } }; initialize(); - }, [account]); + }, [account, provider]); const createUserIfNecessary = async (): Promise => { try { From ff37213ccba85e676f2330db0ad5aefffb3e9c5a Mon Sep 17 00:00:00 2001 From: Monalisha Mishra Date: Tue, 15 Oct 2024 16:30:24 +0530 Subject: [PATCH 2/3] added another fix --- src/contexts/AppContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contexts/AppContext.tsx b/src/contexts/AppContext.tsx index 7ef381d0b3..9690cf353d 100644 --- a/src/contexts/AppContext.tsx +++ b/src/contexts/AppContext.tsx @@ -223,7 +223,7 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => { // call initializePushSDK if decryptedPGPKeys is not null if (decryptedPGPKeys) { console.debug('src::contexts::AppContext::initializePushSdkReadMode::Called initializePushSDK()'); - return initializePushSDK(); + return initializePushSDK(wallet); } // else initialize push sdk in read mode @@ -489,7 +489,7 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => { } }; initialize(); - }, [account, provider]); + }, [account]); const createUserIfNecessary = async (): Promise => { try { From 9f3884994c144ab84a5e51ed4b7f17835be742d3 Mon Sep 17 00:00:00 2001 From: Monalisha Mishra Date: Tue, 15 Oct 2024 17:29:26 +0530 Subject: [PATCH 3/3] reverted the change --- src/contexts/AppContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contexts/AppContext.tsx b/src/contexts/AppContext.tsx index 9690cf353d..7ef381d0b3 100644 --- a/src/contexts/AppContext.tsx +++ b/src/contexts/AppContext.tsx @@ -223,7 +223,7 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => { // call initializePushSDK if decryptedPGPKeys is not null if (decryptedPGPKeys) { console.debug('src::contexts::AppContext::initializePushSdkReadMode::Called initializePushSDK()'); - return initializePushSDK(wallet); + return initializePushSDK(); } // else initialize push sdk in read mode @@ -489,7 +489,7 @@ const AppContextProvider = ({ children }: { children: ReactNode }) => { } }; initialize(); - }, [account]); + }, [account, provider]); const createUserIfNecessary = async (): Promise => { try {