diff --git a/html/src/app.js b/html/src/app.js index 9fd39fb8..ff8a6edc 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -2113,20 +2113,25 @@ speechSynthesis.getVoices(); } this.isNotificationsLoading = true; this.expireNotifications(); - this.bulk({ - fn: 'getNotifications', - N: -1, - params: { - n: 50, - offset: 0 - }, - done(ok) { - if (ok) { - this.deleteExpiredNotifcations(); - } - this.isNotificationsLoading = false; - } + this.expireNotifications(); + this.getNotifications({ n: 100 }).then(() => { + this.deleteExpiredNotifcations(); + this.isNotificationsLoading = false; }); + // this.bulk({ + // fn: 'getNotifications', + // N: -1, + // params: { + // n: 50, + // offset: 0 + // }, + // done(ok) { + // if (ok) { + // this.deleteExpiredNotifcations(); + // } + // this.isNotificationsLoading = false; + // } + // }); }; /*