Page MenuHomePhabricator

D6339.diff
No OneTemporary

D6339.diff

diff --git a/keyserver/src/creators/account-creator.js b/keyserver/src/creators/account-creator.js
--- a/keyserver/src/creators/account-creator.js
+++ b/keyserver/src/creators/account-creator.js
@@ -205,7 +205,7 @@
export type ProcessSIWEAccountCreationRequest = {
+address: string,
- +calendarQuery?: ?CalendarQuery,
+ +calendarQuery: CalendarQuery,
+deviceTokenUpdateRequest?: ?DeviceTokenUpdateRequest,
+platformDetails: PlatformDetails,
+primaryIdentityPublicKey: ?string,
@@ -217,12 +217,8 @@
viewer: Viewer,
request: ProcessSIWEAccountCreationRequest,
): Promise<string> {
- const promises = [];
-
const { calendarQuery } = request;
- if (calendarQuery) {
- promises.push(verifyCalendarQueryThreadIDs(calendarQuery));
- }
+ await verifyCalendarQueryThreadIDs(calendarQuery);
const time = Date.now();
const deviceToken = request.deviceTokenUpdateRequest
@@ -246,9 +242,7 @@
]);
viewer.setNewCookie(userViewerData);
- if (calendarQuery) {
- await setNewSession(viewer, calendarQuery, 0);
- }
+ await setNewSession(viewer, calendarQuery, 0);
await Promise.all([
updateThread(
diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js
--- a/keyserver/src/responders/user-responders.js
+++ b/keyserver/src/responders/user-responders.js
@@ -409,10 +409,11 @@
if (!userID) {
const siweAccountCreationRequest = {
address: siweMessage.address,
- deviceTokenUpdateRequest: deviceTokenUpdateRequest,
+ calendarQuery,
+ deviceTokenUpdateRequest,
platformDetails,
- primaryIdentityPublicKey: primaryIdentityPublicKey,
- socialProof: socialProof,
+ primaryIdentityPublicKey,
+ socialProof,
};
userID = await processSIWEAccountCreation(
viewer,

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 4:04 PM (16 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2678648
Default Alt Text
D6339.diff (1 KB)

Event Timeline