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;