Page MenuHomePhabricator

D6585.diff
No OneTemporary

D6585.diff

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<MessageInfo>,
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<MessageInfo>,
): MessageType {
@@ -169,10 +161,7 @@
const unresolvedNotifTexts = await messageSpec.notificationTexts(
messageInfos,
threadInfo,
- {
- notifThreadName,
- notificationTexts: innerNotificationTexts,
- },
+ { notificationTexts: innerNotificationTexts },
);
const resolveToString = async (

File Metadata

Mime Type
text/plain
Expires
Mon, Sep 30, 11:10 PM (21 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2208290
Default Alt Text
D6585.diff (1 KB)

Event Timeline