@@ -66,7 +66,7 @@ export class NotificationsModelHelper implements INotificationsModel {
6666 }
6767
6868 async getAllNotifications ( category : string ) : Promise < INotificationWithTarget [ ] > {
69- const notificationsForCategory = this . #getOrCategoryEntry ( category )
69+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
7070
7171 await this . #getAllNotificationsRaw( notificationsForCategory , category )
7272
@@ -98,14 +98,14 @@ export class NotificationsModelHelper implements INotificationsModel {
9898 }
9999
100100 clearNotification ( category : string , notificationId : string ) : void {
101- const notificationsForCategory = this . #getOrCategoryEntry ( category )
101+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
102102
103103 // The notification may or may not be loaded, but this indicates that to the saving that we intend to delete it
104104 notificationsForCategory . updatedNotifications . set ( notificationId , null )
105105 }
106106
107107 setNotification ( category : string , notification : INotificationWithTarget ) : void {
108- const notificationsForCategory = this . #getOrCategoryEntry ( category )
108+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
109109
110110 const fullCategory = this . #getFullCategoryName( category )
111111 notificationsForCategory . updatedNotifications . set ( notification . id , {
@@ -119,7 +119,7 @@ export class NotificationsModelHelper implements INotificationsModel {
119119 }
120120
121121 clearAllNotifications ( category : string ) : void {
122- const notificationsForCategory = this . #getOrCategoryEntry ( category )
122+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
123123
124124 // Tell this store that any documents not in the `updatedNotifications` should be deleted
125125 notificationsForCategory . removeAllMissing = true
@@ -128,7 +128,7 @@ export class NotificationsModelHelper implements INotificationsModel {
128128 notificationsForCategory . updatedNotifications . clear ( )
129129 }
130130
131- #getOrCategoryEntry ( category : string ) : NotificationsLoadState {
131+ #getOrCreateCategoryEntry ( category : string ) : NotificationsLoadState {
132132 let notificationsForCategory = this . #notificationsByCategory. get ( category )
133133 if ( ! notificationsForCategory ) {
134134 notificationsForCategory = {
0 commit comments