Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3384951
D9278.id31399.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
D9278.id31399.diff
View Options
diff --git a/lib/shared/messages/message-spec.js b/lib/shared/messages/message-spec.js
--- a/lib/shared/messages/message-spec.js
+++ b/lib/shared/messages/message-spec.js
@@ -46,10 +46,6 @@
};
export type NotificationTextsParams = {
- +notificationTexts: (
- messageInfos: $ReadOnlyArray<MessageInfo>,
- threadInfo: ThreadInfo,
- ) => Promise<?NotifTexts>,
+notifTargetUserInfo: UserInfo,
};
diff --git a/lib/shared/notif-utils.js b/lib/shared/notif-utils.js
--- a/lib/shared/notif-utils.js
+++ b/lib/shared/notif-utils.js
@@ -219,20 +219,10 @@
messageSpec.notificationTexts,
`we're not aware of messageType ${mostRecentType}`,
);
- const innerNotificationTexts = (
- innerMessageInfos: $ReadOnlyArray<MessageInfo>,
- innerThreadInfo: ThreadInfo,
- ) =>
- fullNotifTextsForMessageInfo(
- innerMessageInfos,
- innerThreadInfo,
- notifTargetUserInfo,
- getENSNames,
- );
const unresolvedNotifTexts = await messageSpec.notificationTexts(
messageInfos,
threadInfo,
- { notifTargetUserInfo, notificationTexts: innerNotificationTexts },
+ { notifTargetUserInfo },
);
if (!unresolvedNotifTexts) {
return unresolvedNotifTexts;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 10:49 PM (20 h, 50 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2598480
Default Alt Text
D9278.id31399.diff (1 KB)
Attached To
Mode
D9278: [lib] Get rid of innerNotificationTexts
Attached
Detach File
Event Timeline
Log In to Comment