@@ -77,12 +77,13 @@ interface AppContextState {
7777 globalError : GitifyError ;
7878
7979 notifications : AccountNotifications [ ] ;
80- unreadCount : number ;
81- hasUnreadNotifications : boolean ;
80+ notificationCount : number ;
81+ unreadNotificationCount : number ;
8282 hasNotifications : boolean ;
83+ hasUnreadNotifications : boolean ;
84+
8385 fetchNotifications : ( ) => Promise < void > ;
8486 removeAccountNotifications : ( account : Account ) => Promise < void > ;
85-
8687 markNotificationsAsRead : ( notifications : Notification [ ] ) => Promise < void > ;
8788 markNotificationsAsDone : ( notifications : Notification [ ] ) => Promise < void > ;
8889 unsubscribeNotification : ( notification : Notification ) => Promise < void > ;
@@ -375,8 +376,8 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
375376 unreadNotificationCount,
376377 hasNotifications,
377378 hasUnreadNotifications,
378- fetchNotifications : fetchNotificationsWithAccounts ,
379379
380+ fetchNotifications : fetchNotificationsWithAccounts ,
380381 markNotificationsAsRead : markNotificationsAsReadWithAccounts ,
381382 markNotificationsAsDone : markNotificationsAsDoneWithAccounts ,
382383 unsubscribeNotification : unsubscribeNotificationWithAccounts ,
@@ -403,6 +404,7 @@ export const AppProvider = ({ children }: { children: ReactNode }) => {
403404 unreadNotificationCount ,
404405 hasNotifications ,
405406 hasUnreadNotifications ,
407+
406408 fetchNotificationsWithAccounts ,
407409 markNotificationsAsReadWithAccounts ,
408410 markNotificationsAsDoneWithAccounts ,
0 commit comments