fix notification spam

This commit is contained in:
pypy
2021-05-26 12:27:14 +09:00
parent 62f8483a25
commit 3ed137f0b7

View File

@@ -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;
// }
// });
};
/*