Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32286016
D15088.1765270880.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D15088.1765270880.diff
View Options
diff --git a/lib/socket/socket.react.js b/lib/socket/socket.react.js
--- a/lib/socket/socket.react.js
+++ b/lib/socket/socket.react.js
@@ -106,7 +106,7 @@
+preRequestUserState: PreRequestUserState,
+lastCommunicatedPlatformDetails: ?PlatformDetails,
+decompressSocketMessage: CompressedData => string,
- +activeSessionRecovery: null | RecoveryFromReduxActionSource,
+ +activeSessionRecovery?: null | RecoveryFromReduxActionSource,
+dispatch: Dispatch,
+dispatchActionPromise: DispatchActionPromise,
+fetchPendingUpdates: FetchPendingUpdatesInput => Promise<ClientStateSyncSocketResult>,
diff --git a/lib/types/community-types.js b/lib/types/community-types.js
--- a/lib/types/community-types.js
+++ b/lib/types/community-types.js
@@ -47,7 +47,7 @@
export type ClientCommunityInfoWithCommunityName = $ReadOnly<{
...ServerCommunityInfo,
+communityName: string,
- +threadInfo: ThinRawThreadInfo | null,
+ +threadInfo?: ThinRawThreadInfo,
}>;
export const clientCommunityInfoWithCommunityNameValidator: TInterface<ClientCommunityInfoWithCommunityName> =
diff --git a/lib/types/relationship-types.js b/lib/types/relationship-types.js
--- a/lib/types/relationship-types.js
+++ b/lib/types/relationship-types.js
@@ -89,7 +89,7 @@
| LegacyFarcasterRelationshipRequest;
export type RelationshipRequestUserInfo = {
- +createRobotextInThinThread: boolean,
+ +createRobotextInThinThread?: boolean,
};
export type RelationshipRequestWithRobotext = {
+action: 'farcaster' | 'friend',
diff --git a/lib/types/socket-types.js b/lib/types/socket-types.js
--- a/lib/types/socket-types.js
+++ b/lib/types/socket-types.js
@@ -364,7 +364,7 @@
+type: 3,
+responseTo: number,
+message: string,
- +sessionChange: SessionChange,
+ +sessionChange?: SessionChange,
};
export const authErrorServerSocketMessageValidator: TInterface<AuthErrorServerSocketMessage> =
tShape<AuthErrorServerSocketMessage>({
@@ -516,7 +516,7 @@
+connectionIssue: ?ConnectionIssue,
// When this is flipped to truthy, a session recovery is attempted
// This can happen when the keyserver invalidates the session
- +activeSessionRecovery: null | RecoveryFromReduxActionSource,
+ +activeSessionRecovery?: null | RecoveryFromReduxActionSource,
};
export const connectionInfoValidator: TInterface<ConnectionInfo> =
tShape<ConnectionInfo>({
diff --git a/lib/types/thread-permission-types.js b/lib/types/thread-permission-types.js
--- a/lib/types/thread-permission-types.js
+++ b/lib/types/thread-permission-types.js
@@ -513,7 +513,7 @@
export type ThreadPermissionInfo =
| { +value: true, +source: string }
- | { +value: false, +source: null };
+ | { +value: false, +source?: null };
export const threadPermissionInfoValidator: TUnion<ThreadPermissionInfo> =
t.union([
tShape({ value: tBool(true), source: tID }),
diff --git a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
--- a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
+++ b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
@@ -56,7 +56,7 @@
+type: 'BACKUP_DATA',
+userID: string,
+primaryDeviceID: string,
- +backupData: QRAuthBackupData,
+ +backupData: ?QRAuthBackupData,
};
export const backupDataP2PMessageValidator: TInterface<BackupDataP2PMessage> =
tShape<BackupDataP2PMessage>({
diff --git a/lib/utils/user-info-extraction-utils.js b/lib/utils/user-info-extraction-utils.js
--- a/lib/utils/user-info-extraction-utils.js
+++ b/lib/utils/user-info-extraction-utils.js
@@ -24,10 +24,10 @@
};
type AdditionalResponseFields = {
- +cookieChange: AdditionalCookieChange,
+ +cookieChange?: AdditionalCookieChange,
+error?: string,
+payload?: Object,
- +success: boolean,
+ +success?: boolean,
};
const additionalResponseFieldsValidator = tShape<AdditionalResponseFields>({
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 9, 9:01 AM (8 m, 35 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5853683
Default Alt Text
D15088.1765270880.diff (3 KB)
Attached To
Mode
D15088: [Flow262][skip-ci] Make some properties optional
Attached
Detach File
Event Timeline
Log In to Comment