Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3359190
D11641.id39070.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11641.id39070.diff
View Options
diff --git a/lib/types/messages/update-relationship.js b/lib/types/messages/update-relationship.js
--- a/lib/types/messages/update-relationship.js
+++ b/lib/types/messages/update-relationship.js
@@ -6,15 +6,36 @@
import { messageTypes } from '../message-types-enum.js';
import type { RelativeUserInfo } from '../user-types.js';
-export type UpdateRelationshipMessageData = {
+export type TraditionalRelationshipOperation =
+ | 'request_sent'
+ | 'request_accepted';
+
+export type FarcasterRelationshipOperation = 'farcaster_mutual';
+
+export type UpdateTraditionalMessageData = {
+type: 22,
+threadID: string,
+creatorID: string,
+targetID: string,
+time: number,
- +operation: 'request_sent' | 'request_accepted' | 'farcaster_mutual',
+ +operation: TraditionalRelationshipOperation,
};
+export type UpdateFarcasterMessageData = {
+ +type: 22,
+ +threadID: string,
+ +creatorID: string,
+ +creatorFID: string,
+ +targetID: string,
+ +targetFID: string,
+ +time: number,
+ +operation: FarcasterRelationshipOperation,
+};
+
+export type UpdateRelationshipMessageData =
+ | UpdateTraditionalMessageData
+ | UpdateFarcasterMessageData;
+
export type RawUpdateRelationshipMessageInfo = {
...UpdateRelationshipMessageData,
id: string,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 7:46 AM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2578954
Default Alt Text
D11641.id39070.diff (1 KB)
Attached To
Mode
D11641: [lib] Split `UpdateRelationshipMessageData` into `UpdateTraditionalMessageData` and `UpdateFarcasterMessageData`
Attached
Detach File
Event Timeline
Log In to Comment