Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3383116
D11222.id37847.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11222.id37847.diff
View Options
diff --git a/lib/components/keyserver-connection-handler.js b/lib/components/keyserver-connection-handler.js
--- a/lib/components/keyserver-connection-handler.js
+++ b/lib/components/keyserver-connection-handler.js
@@ -144,28 +144,22 @@
await dispatchActionPromise(
keyserverAuthActionTypes,
- (async () => {
- const result = await keyserverAuth({
- userID,
- deviceID,
- doNotRegister: false,
- calendarQuery,
- deviceTokenUpdateInput,
- authActionSource: process.env.BROWSER
- ? logInActionSources.keyserverAuthFromWeb
- : logInActionSources.keyserverAuthFromNative,
- keyserverData: {
- [keyserverID]: {
- initialContentEncryptedMessage: contentSession,
- initialNotificationsEncryptedMessage: notifsSession,
- },
+ keyserverAuth({
+ userID,
+ deviceID,
+ doNotRegister: false,
+ calendarQuery,
+ deviceTokenUpdateInput,
+ authActionSource: process.env.BROWSER
+ ? logInActionSources.keyserverAuthFromWeb
+ : logInActionSources.keyserverAuthFromNative,
+ keyserverData: {
+ [keyserverID]: {
+ initialContentEncryptedMessage: contentSession,
+ initialNotificationsEncryptedMessage: notifsSession,
},
- });
- if (cancelled) {
- throw new Error(CANCELLED_ERROR);
- }
- return result;
- })(),
+ },
+ }),
);
} catch (e) {
if (cancelled) {
@@ -266,11 +260,6 @@
keyserverID,
getInitialNotificationsEncryptedMessageForRecovery,
);
- if (cancelled) {
- // TODO: cancellation won't work because above call handles Redux
- // dispatch directly
- throw new Error(CANCELLED_ERROR);
- }
const sessionChange =
recoverySessionChange ?? genericCookieInvalidation;
if (
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 1:43 PM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2596871
Default Alt Text
D11222.id37847.diff (2 KB)
Attached To
Mode
D11222: [lib] Don't cancel an auth that the keyserver completes
Attached
Detach File
Event Timeline
Log In to Comment