Update ReadAllNotificationsButton.plugin.js

This commit is contained in:
Mirco Wittrien 2020-11-18 17:59:44 +01:00
parent 57563eb732
commit 150247b5ad
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ module.exports = (_ => {
onClick: _ => { onClick: _ => {
let clear = _ => { let clear = _ => {
if (clearing) return BDFDB.NotificationUtils.toast("Already clearing some recent mentions, please wait...", {type: "error"}); if (clearing) return BDFDB.NotificationUtils.toast("Already clearing some recent mentions, please wait...", {type: "error"});
let messages = [].concat(e.instance.props.messages); let messages = [].concat(e.instance.props.messages).filter(n => n);
if (messages.length) { if (messages.length) {
clearing = true; clearing = true;
let toast = BDFDB.NotificationUtils.toast("Clearing all recent mentions, please wait...", {timeout:0}); let toast = BDFDB.NotificationUtils.toast("Clearing all recent mentions, please wait...", {timeout:0});