Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3389639
D9533.id33537.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
D9533.id33537.diff
View Options
diff --git a/lib/selectors/socket-selectors.js b/lib/selectors/socket-selectors.js
--- a/lib/selectors/socket-selectors.js
+++ b/lib/selectors/socket-selectors.js
@@ -70,7 +70,7 @@
) => (
calendarActive: boolean,
oneTimeKeyGenerator: ?OneTimeKeyGenerator,
- getSignedIdentityKeysBlob: ?() => Promise<SignedIdentityKeysBlob>,
+ getSignedIdentityKeysBlob: () => Promise<SignedIdentityKeysBlob>,
getInitialNotificationsEncryptedMessage: ?() => Promise<string>,
serverRequests: $ReadOnlyArray<ClientServerRequest>,
) => Promise<$ReadOnlyArray<ClientClientResponse>> = createSelector(
@@ -83,7 +83,7 @@
return async (
calendarActive: boolean,
oneTimeKeyGenerator: ?OneTimeKeyGenerator,
- getSignedIdentityKeysBlob: ?() => Promise<SignedIdentityKeysBlob>,
+ getSignedIdentityKeysBlob: () => Promise<SignedIdentityKeysBlob>,
getInitialNotificationsEncryptedMessage: ?() => Promise<string>,
serverRequests: $ReadOnlyArray<ClientServerRequest>,
): Promise<$ReadOnlyArray<ClientClientResponse>> => {
@@ -168,8 +168,7 @@
keys,
});
} else if (
- serverRequest.type === serverRequestTypes.SIGNED_IDENTITY_KEYS_BLOB &&
- getSignedIdentityKeysBlob
+ serverRequest.type === serverRequestTypes.SIGNED_IDENTITY_KEYS_BLOB
) {
const signedIdentityKeysBlob = await getSignedIdentityKeysBlob();
clientResponses.push({
diff --git a/native/selectors/socket-selectors.js b/native/selectors/socket-selectors.js
--- a/native/selectors/socket-selectors.js
+++ b/native/selectors/socket-selectors.js
@@ -106,7 +106,7 @@
getClientResponsesFunc: (
calendarActive: boolean,
oneTimeKeyGenerator: ?OneTimeKeyGenerator,
- getSignedIdentityKeysBlob: ?() => Promise<SignedIdentityKeysBlob>,
+ getSignedIdentityKeysBlob: () => Promise<SignedIdentityKeysBlob>,
getInitialNotificationsEncryptedMessage: ?() => Promise<string>,
serverRequests: $ReadOnlyArray<ClientServerRequest>,
) => Promise<$ReadOnlyArray<ClientClientResponse>>,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 7:55 PM (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2601838
Default Alt Text
D9533.id33537.diff (2 KB)
Attached To
Mode
D9533: Enforce getSignedIdentityKeysBlob in socket selectors
Attached
Detach File
Event Timeline
Log In to Comment