@@ -66,7 +66,7 @@ export class NotificationsModelHelper implements INotificationsModel {
66
66
}
67
67
68
68
async getAllNotifications ( category : string ) : Promise < INotificationWithTarget [ ] > {
69
- const notificationsForCategory = this . #getOrCategoryEntry ( category )
69
+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
70
70
71
71
await this . #getAllNotificationsRaw( notificationsForCategory , category )
72
72
@@ -98,14 +98,14 @@ export class NotificationsModelHelper implements INotificationsModel {
98
98
}
99
99
100
100
clearNotification ( category : string , notificationId : string ) : void {
101
- const notificationsForCategory = this . #getOrCategoryEntry ( category )
101
+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
102
102
103
103
// The notification may or may not be loaded, but this indicates that to the saving that we intend to delete it
104
104
notificationsForCategory . updatedNotifications . set ( notificationId , null )
105
105
}
106
106
107
107
setNotification ( category : string , notification : INotificationWithTarget ) : void {
108
- const notificationsForCategory = this . #getOrCategoryEntry ( category )
108
+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
109
109
110
110
const fullCategory = this . #getFullCategoryName( category )
111
111
notificationsForCategory . updatedNotifications . set ( notification . id , {
@@ -119,7 +119,7 @@ export class NotificationsModelHelper implements INotificationsModel {
119
119
}
120
120
121
121
clearAllNotifications ( category : string ) : void {
122
- const notificationsForCategory = this . #getOrCategoryEntry ( category )
122
+ const notificationsForCategory = this . #getOrCreateCategoryEntry ( category )
123
123
124
124
// Tell this store that any documents not in the `updatedNotifications` should be deleted
125
125
notificationsForCategory . removeAllMissing = true
@@ -128,7 +128,7 @@ export class NotificationsModelHelper implements INotificationsModel {
128
128
notificationsForCategory . updatedNotifications . clear ( )
129
129
}
130
130
131
- #getOrCategoryEntry ( category : string ) : NotificationsLoadState {
131
+ #getOrCreateCategoryEntry ( category : string ) : NotificationsLoadState {
132
132
let notificationsForCategory = this . #notificationsByCategory. get ( category )
133
133
if ( ! notificationsForCategory ) {
134
134
notificationsForCategory = {
0 commit comments