Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33531628
D14563.1769076437.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14563.1769076437.diff
View Options
diff --git a/lib/actions/user-actions.js b/lib/actions/user-actions.js
--- a/lib/actions/user-actions.js
+++ b/lib/actions/user-actions.js
@@ -431,15 +431,14 @@
const logOut = useBaseLogOut(primaryDeviceLogOutOptions);
return React.useCallback(async () => {
- const { identityClient, getAuthMetadata } = identityContext;
- const authMetadata = await getAuthMetadata();
+ const authMetadata = await identityContext.getAuthMetadata();
const { userID, deviceID: thisDeviceID } = authMetadata;
if (!thisDeviceID || !userID) {
throw new Error('No auth metadata');
}
- const {
- devices: [primaryDeviceID, ...secondaryDevices],
- } = await fetchLatestDeviceList(identityClient, userID);
+ const [primaryDeviceID, ...secondaryDevices] = ownPeerDevices.map(
+ it => it.deviceID,
+ );
if (thisDeviceID !== primaryDeviceID) {
throw new Error('Used primary device logout on a non-primary device');
}
@@ -471,6 +470,7 @@
foreignPeerDevices,
identityContext,
logOut,
+ ownPeerDevices,
ownedKeyserverDeviceID,
]);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 22, 10:07 AM (13 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5974321
Default Alt Text
D14563.1769076437.diff (1 KB)
Attached To
Mode
D14563: [lib] Use AuxUserStore peer list in primary logout
Attached
Detach File
Event Timeline
Log In to Comment