Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3341246
D11927.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1005 B
Referenced Files
None
Subscribers
None
D11927.diff
View Options
diff --git a/lib/reducers/user-reducer.js b/lib/reducers/user-reducer.js
--- a/lib/reducers/user-reducer.js
+++ b/lib/reducers/user-reducer.js
@@ -47,7 +47,10 @@
UserStore,
} from '../types/user-types.js';
import { authoritativeKeyserverID } from '../utils/authoritative-keyserver.js';
-import { relyingOnAuthoritativeKeyserver } from '../utils/services-utils.js';
+import {
+ relyingOnAuthoritativeKeyserver,
+ usingCommServicesAccessToken,
+} from '../utils/services-utils.js';
function reduceCurrentUserInfo(
state: ?CurrentUserInfo,
@@ -83,6 +86,10 @@
const actionUserInfo = action.payload.sessionChange.currentUserInfo;
if (!actionUserInfo?.id) {
return actionUserInfo;
+ } else if (!usingCommServicesAccessToken) {
+ if (!_isEqual(actionUserInfo)(state)) {
+ return actionUserInfo;
+ }
} else if (!state?.id || actionUserInfo.id !== state.id) {
console.log(
'keyserver auth returned a different user info than identity login',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 10:41 PM (18 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2566148
Default Alt Text
D11927.diff (1005 B)
Attached To
Mode
D11927: [lib] Don't compare identity/keyserver login when not using CSAT
Attached
Detach File
Event Timeline
Log In to Comment