Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3391021
D11458.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
D11458.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
@@ -189,6 +189,8 @@
possessive: true,
});
return ET`${creator} accepted ${targetPossessive} friend request`;
+ } else if (messageInfo.operation === 'farcaster_mutual') {
+ return ET`Your connection on Farcaster is on Comm.`;
}
invariant(
false,
@@ -215,10 +217,18 @@
const creator = ET.user({ userInfo: messageInfo.creator });
const prefix = ET`${creator}`;
const title = threadInfo.uiName;
- const body =
- messageInfo.operation === 'request_sent'
- ? 'sent you a friend request'
- : 'accepted your friend request';
+
+ let body;
+ if (messageInfo.operation === 'request_sent') {
+ body = 'sent you a friend request';
+ } else if (messageInfo.operation === 'request_accepted') {
+ body = 'accepted your friend request';
+ } else if (messageInfo.operation === 'farcaster_mutual') {
+ body = 'from Farcaster is on Comm';
+ } else {
+ invariant(false, 'unknown messageInfo.operation in notificationTexts');
+ }
+
const merged = ET`${prefix} ${body}`;
return {
merged,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 1:59 AM (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2603253
Default Alt Text
D11458.diff (1 KB)
Attached To
Mode
D11458: [lib] Handle `farcaster_mutual` case in `robotext/notificationTexts`
Attached
Detach File
Event Timeline
Log In to Comment