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, - threadInfo: ThreadInfo, - ) => Promise, +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, - innerThreadInfo: ThreadInfo, - ) => - fullNotifTextsForMessageInfo( - innerMessageInfos, - innerThreadInfo, - notifTargetUserInfo, - getENSNames, - ); const unresolvedNotifTexts = await messageSpec.notificationTexts( messageInfos, threadInfo, - { notifTargetUserInfo, notificationTexts: innerNotificationTexts }, + { notifTargetUserInfo }, ); if (!unresolvedNotifTexts) { return unresolvedNotifTexts;