Skip to content

Commit

Permalink
refactor: native notification body (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy authored Sep 19, 2024
1 parent 550589d commit c15aa84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/notifications/native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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.`;
Expand Down

0 comments on commit c15aa84

Please sign in to comment.