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 @@ -44,7 +44,6 @@ }; export type NotificationTextsParams = { - +notifThreadName: (threadInfo: ThreadInfo) => string, +notificationTexts: ( messageInfos: $ReadOnlyArray, threadInfo: ThreadInfo, 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 @@ -129,14 +129,6 @@ }; } -function notifThreadName(threadInfo: ThreadInfo): string { - if (threadInfo.name) { - return threadInfo.name; - } else { - return 'your chat'; - } -} - function mostRecentMessageInfoType( messageInfos: $ReadOnlyArray, ): MessageType { @@ -169,10 +161,7 @@ const unresolvedNotifTexts = await messageSpec.notificationTexts( messageInfos, threadInfo, - { - notifThreadName, - notificationTexts: innerNotificationTexts, - }, + { notificationTexts: innerNotificationTexts }, ); const resolveToString = async (