Skip to content

Commit

Permalink
feat: correctly raise native notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Jun 8, 2024
1 parent 5632041 commit ba81d6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type {
import { Notification } from '../typesGitHub';
import { openInBrowser } from '../utils/helpers';
import { listNotificationsForAuthenticatedUser } from './api/client';
import { getAccountUUID } from './auth/utils';
import { updateTrayIcon } from './comms';
import { isWindows } from './platform';
import { getGitifySubjectDetails } from './subject';
Expand All @@ -34,7 +35,8 @@ export const triggerNativeNotifications = (
.map((accountNotifications) => {
const accountPreviousNotifications = previousNotifications.find(
(item) =>
item.account.hostname === accountNotifications.account.hostname,
getAccountUUID(item.account) ===
getAccountUUID(accountNotifications.account),
);

if (!accountPreviousNotifications) {
Expand Down

0 comments on commit ba81d6d

Please sign in to comment.