fix notification spam

This commit is contained in:
pypy
2021-05-26 12:27:14 +09:00
parent 62f8483a25
commit 3ed137f0b7
+18 -13
View File
@@ -2113,20 +2113,25 @@ speechSynthesis.getVoices();
} }
this.isNotificationsLoading = true; this.isNotificationsLoading = true;
this.expireNotifications(); this.expireNotifications();
this.bulk({ this.expireNotifications();
fn: 'getNotifications', this.getNotifications({ n: 100 }).then(() => {
N: -1, this.deleteExpiredNotifcations();
params: { this.isNotificationsLoading = false;
n: 50,
offset: 0
},
done(ok) {
if (ok) {
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;
// }
// });
}; };
/* /*