Page MenuHomePhabricator

D11458.diff
No OneTemporary

D11458.diff

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

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)

Event Timeline