Created
June 7, 2024 16:09
-
-
Save vdhanan/0a8bd816ab34cd2df3fdb46a73087f0b to your computer and use it in GitHub Desktop.
testplan.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/actions/user-actions.js b/lib/actions/user-actions.js | |
index ee67a6d902..2312859272 100644 | |
--- a/lib/actions/user-actions.js | |
+++ b/lib/actions/user-actions.js | |
@@ -475,6 +475,7 @@ function useDeleteDiscardedIdentityAccount(): ( | |
'deleteDiscardedIdentityAccount can only be called when ' + | |
'usingCommServicesAccessToken', | |
); | |
+ throw new Error('ahhh'); | |
if (!identityClient) { | |
throw new Error('Identity service client is not initialized'); | |
} | |
diff --git a/lib/utils/action-logger.js b/lib/utils/action-logger.js | |
index 44ad4a027c..9d06ab8394 100644 | |
--- a/lib/utils/action-logger.js | |
+++ b/lib/utils/action-logger.js | |
@@ -170,9 +170,11 @@ const actionLogger: ActionLogger = new ActionLogger(); | |
const reduxLoggerMiddleware: Middleware<Object, Object> = | |
store => next => action => { | |
+ console.log('Dispatching action:', action); | |
const beforeState = store.getState(); | |
const result = next(action); | |
const afterState = store.getState(); | |
+ console.log('Next state:', afterState); | |
actionLogger.addReduxAction(action, beforeState, afterState); | |
return result; | |
}; | |
diff --git a/lib/utils/services-utils.js b/lib/utils/services-utils.js | |
index 684f444314..c22609665e 100644 | |
--- a/lib/utils/services-utils.js | |
+++ b/lib/utils/services-utils.js | |
@@ -7,7 +7,7 @@ import type { AuthMetadata } from '../shared/identity-client-context.js'; | |
// If this is true then we're using the identity service for auth. After we | |
// auth, the identity service gives us a CSAT, which we can use to auth with | |
// other Comm services. | |
-const usingCommServicesAccessToken = false; | |
+const usingCommServicesAccessToken = true; | |
// If this is true, then the app is able to support multiple keyservers. This | |
// requires the use of Tunnelbroker and the backup service to persist and sync | |
diff --git a/native/account/registration/registration-server-call.js b/native/account/registration/registration-server-call.js | |
index 64897696ea..c192aa0cd6 100644 | |
--- a/native/account/registration/registration-server-call.js | |
+++ b/native/account/registration/registration-server-call.js | |
@@ -492,6 +492,7 @@ function useRegistrationServerCall(): RegistrationServerCallInput => Promise<voi | |
} | |
return deletionResult; | |
} catch (deleteException) { | |
+ console.log('delete exception:', deleteException); | |
// We swallow the exception here because | |
// discardIdentityAccountPromise is used in a scenario where the | |
// user is visibly logged-out, and it's only used to reset state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment