From c9457f31db9178a31643b2b6c65830792165467d Mon Sep 17 00:00:00 2001 From: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Wed, 17 Dec 2025 07:23:14 -0800 Subject: [PATCH] Fix notification text for incoming pinned message --- ts/util/getNotificationDataForMessage.preload.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/util/getNotificationDataForMessage.preload.ts b/ts/util/getNotificationDataForMessage.preload.ts index 60db3c5bd1..c1e068bbd4 100644 --- a/ts/util/getNotificationDataForMessage.preload.ts +++ b/ts/util/getNotificationDataForMessage.preload.ts @@ -512,14 +512,14 @@ export function getNotificationDataForMessage( } if (isPinnedMessageNotification(attributes)) { - const fromContact = getAuthor(attributes); + const { sourceServiceId } = attributes; const ourAci = itemStorage.user.getCheckedAci(); let text: string; - if (fromContact?.getAci() === ourAci) { + if (sourceServiceId === ourAci) { text = i18n('icu:message--pinned--preview--sent'); } else { - const sender = fromContact?.getTitle() ?? i18n('icu:unknownContact'); + const sender = findAndFormatContact(sourceServiceId).title; text = i18n('icu:message--pinned--preview--received', { sender }); }