Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3183298
D11872.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
D11872.diff
View Options
diff --git a/lib/shared/messages/update-relationship-message-spec.js b/lib/shared/messages/update-relationship-message-spec.js
--- a/lib/shared/messages/update-relationship-message-spec.js
+++ b/lib/shared/messages/update-relationship-message-spec.js
@@ -51,8 +51,6 @@
...
};
-const connectionOnFarcasterMessage = 'Your connection on Farcaster is on Comm.';
-
export const updateRelationshipMessageSpec: UpdateRelationshipMessageSpec =
Object.freeze({
messageContentForServerDB(
@@ -245,7 +243,13 @@
});
return ET`${creator} accepted ${targetPossessive} friend request`;
} else if (messageInfo.operation === 'farcaster_mutual') {
- return ET`${connectionOnFarcasterMessage}`;
+ const viewerIsCreator = messageInfo.creator.isViewer;
+ if (viewerIsCreator) {
+ const otherUser = ET.user({ userInfo: messageInfo.target });
+ return ET`${otherUser} is ${messageInfo.targetFID} on Farcaster`;
+ } else {
+ return ET`${creator} is ${messageInfo.creatorFID} on Farcaster`;
+ }
}
invariant(
false,
@@ -290,7 +294,7 @@
threadID: rawMessageInfo.threadID,
creatorID: rawMessageInfo.creatorID,
time: rawMessageInfo.time,
- robotext: connectionOnFarcasterMessage,
+ robotext: 'Your connection on Farcaster is on Comm.',
unsupportedMessageInfo: rawMessageInfo,
dontPrefixCreator: true,
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 8:49 AM (18 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2451022
Default Alt Text
D11872.diff (1 KB)
Attached To
Mode
D11872: [lib] Show other user FID in FARCASTER_MUTUAL robotext
Attached
Detach File
Event Timeline
Log In to Comment