From d5404a78e605c4ad65bf6598d93d9d001ed6fd9a Mon Sep 17 00:00:00 2001 From: Afonso Jorge Ramos Date: Wed, 29 Jul 2026 15:03:11 +0200 Subject: [PATCH] fix(notifications): drop subject type suffix from native notification body --- src/renderer/utils/system/native.test.ts | 2 +- src/renderer/utils/system/native.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/renderer/utils/system/native.test.ts b/src/renderer/utils/system/native.test.ts index 99dfd11fc..d1cf59020 100644 --- a/src/renderer/utils/system/native.test.ts +++ b/src/renderer/utils/system/native.test.ts @@ -22,7 +22,7 @@ describe('renderer/utils/system/native.ts', () => { expect.stringContaining( mockSingleAccountNotifications[0].notifications[0].repository.fullName, ), - expect.stringContaining(mockSingleAccountNotifications[0].notifications[0].subject.title), + mockSingleAccountNotifications[0].notifications[0].subject.title, expect.stringContaining(mockHtmlUrl), ); expect(url.generateNotificationWebUrl).toHaveBeenCalledTimes(1); diff --git a/src/renderer/utils/system/native.ts b/src/renderer/utils/system/native.ts index ba337f0d0..88421068b 100644 --- a/src/renderer/utils/system/native.ts +++ b/src/renderer/utils/system/native.ts @@ -21,9 +21,7 @@ export async function raiseNativeNotification(notifications: GitifyNotification[ if (notifications.length === 1) { const notification = notifications[0]; title = notification.repository.fullName; - body = notification.subject.type - ? `${notification.subject.title} [${notification.subject.type}]` - : notification.subject.title; + body = notification.subject.title; url = await generateNotificationWebUrl(notification); } else { title = APPLICATION.NAME;