Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3404787
D11592.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
D11592.diff
View Options
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
@@ -31,17 +31,30 @@
values(userRelationshipStatus),
);
-export const relationshipActions = Object.freeze({
+const relationshipActionsSansFarcaster = Object.freeze({
FRIEND: 'friend',
UNFRIEND: 'unfriend',
BLOCK: 'block',
UNBLOCK: 'unblock',
+});
+
+const farcasterRelationshipActions = Object.freeze({
FARCASTER_MUTUAL: 'farcaster',
});
+
+export const relationshipActions = Object.freeze({
+ ...relationshipActionsSansFarcaster,
+ ...farcasterRelationshipActions,
+});
+
export type RelationshipAction = $Values<typeof relationshipActions>;
export const relationshipActionsList: $ReadOnlyArray<RelationshipAction> =
values(relationshipActions);
+export type RelationshipActionSansFarcaster = $Values<
+ typeof relationshipActionsSansFarcaster,
+>;
+
export const relationshipButtons = Object.freeze({
FRIEND: 'friend',
UNFRIEND: 'unfriend',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 4, 1:14 PM (10 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614333
Default Alt Text
D11592.diff (1 KB)
Attached To
Mode
D11592: [lib] Split `RelationshipAction` and `RelationshipActionSansFarcaster`
Attached
Detach File
Event Timeline
Log In to Comment