@everymatrix/nuts-inbox-widget 1.74.11 → 1.74.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4288,6 +4288,9 @@ class NotificationCache {
|
|
|
4288
4288
|
this.updateCache(updatedNotifications);
|
|
4289
4289
|
}
|
|
4290
4290
|
addToFront(notification) {
|
|
4291
|
+
if (!this.cache.get(0)) {
|
|
4292
|
+
return;
|
|
4293
|
+
}
|
|
4291
4294
|
const updatedNotifications = [notification, ...this.getAllFromCache()];
|
|
4292
4295
|
this.updateCache(updatedNotifications);
|
|
4293
4296
|
}
|
|
@@ -33,6 +33,9 @@ class NotificationCache {
|
|
|
33
33
|
this.updateCache(updatedNotifications);
|
|
34
34
|
}
|
|
35
35
|
addToFront(notification) {
|
|
36
|
+
if (!this.cache.get(0)) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
36
39
|
const updatedNotifications = [notification, ...this.getAllFromCache()];
|
|
37
40
|
this.updateCache(updatedNotifications);
|
|
38
41
|
}
|
|
@@ -4284,6 +4284,9 @@ class NotificationCache {
|
|
|
4284
4284
|
this.updateCache(updatedNotifications);
|
|
4285
4285
|
}
|
|
4286
4286
|
addToFront(notification) {
|
|
4287
|
+
if (!this.cache.get(0)) {
|
|
4288
|
+
return;
|
|
4289
|
+
}
|
|
4287
4290
|
const updatedNotifications = [notification, ...this.getAllFromCache()];
|
|
4288
4291
|
this.updateCache(updatedNotifications);
|
|
4289
4292
|
}
|