File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/renderer/utils/notifications Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { APPLICATION } from '../../../shared/constants';
33import type { AccountNotifications , GitifyState } from '../../types' ;
44import type { Notification } from '../../typesGitHub' ;
55import { getAccountUUID } from '../auth/utils' ;
6+ import { generateGitHubWebUrl } from '../helpers' ;
67import { setTrayIconColor } from './notifications' ;
78
89export const triggerNativeNotifications = (
@@ -50,18 +51,20 @@ export const triggerNativeNotifications = (
5051 }
5152} ;
5253
53- export const raiseNativeNotification = ( notifications : Notification [ ] ) => {
54+ export const raiseNativeNotification = async (
55+ notifications : Notification [ ] ,
56+ ) => {
5457 let title : string ;
5558 let body : string ;
56- const url : string = null ;
59+ let url : string = null ;
5760
5861 if ( notifications . length === 1 ) {
5962 const notification = notifications [ 0 ] ;
6063 title = window . gitify . platform . isWindows ( )
6164 ? ''
6265 : notification . repository . full_name ;
6366 body = notification . subject . title ;
64- // url intentionally left null (no direct subject URL available)
67+ url = await generateGitHubWebUrl ( notification ) ;
6568 } else {
6669 title = APPLICATION . NAME ;
6770 body = `You have ${ notifications . length } notifications` ;
You can’t perform that action at this time.
0 commit comments