From c15aa84f68a72aa594f3401f32faeddd8c446b92 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Thu, 19 Sep 2024 07:17:46 -0400 Subject: [PATCH] refactor: native notification body (#63) Signed-off-by: Adam Setch --- src/utils/notifications/native.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/notifications/native.ts b/src/utils/notifications/native.ts index 35586cda..a779f1e7 100644 --- a/src/utils/notifications/native.ts +++ b/src/utils/notifications/native.ts @@ -5,6 +5,7 @@ import type { } from '../../types'; import { getAccountUUID } from '../auth/utils'; import { hideWindow, showWindow } from '../comms'; +import { formatNotificationFooterText } from '../helpers'; import { openNotification } from '../links'; import { isWindows } from '../platform'; import { setTrayIconColor } from './notifications'; @@ -63,8 +64,8 @@ export const raiseNativeNotification = ( if (notifications.length === 1) { const notification = notifications[0]; - title = isWindows() ? '' : notification.entity.title; - body = notification.title; + title = isWindows() ? '' : notification.title; + body = `${formatNotificationFooterText(notification)}: ${notification.entity.title}`; } else { title = 'Atlassify'; body = `You have ${notifications.length} notifications.`;