Page MenuHomePhabricator

D11592.id38950.diff
No OneTemporary

D11592.id38950.diff

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

Mime Type
text/plain
Expires
Thu, Dec 5, 2:47 AM (14 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614333
Default Alt Text
D11592.id38950.diff (1 KB)

Event Timeline