Update FriendNotifications.plugin.js
This commit is contained in:
parent
a86ad88be5
commit
1e9405089f
|
@ -773,9 +773,7 @@ module.exports = (_ => {
|
||||||
onClick: openChannel
|
onClick: openChannel
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (!document.querySelector(`.friendnotifications-${id}-toast`)) {
|
else BDFDB.NotificationUtils.toast(BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(toastString)), {
|
||||||
BDFDB.NotificationUtils.toast(BDFDB.ReactUtils.elementToReact(BDFDB.DOMUtils.create(toastString)), {
|
|
||||||
className: `friendnotifications-${status.name}-toast friendnotifications-${id}-toast`,
|
|
||||||
timeout: amounts.toastTime * 1000,
|
timeout: amounts.toastTime * 1000,
|
||||||
avatar: avatar,
|
avatar: avatar,
|
||||||
barColor: BDFDB.UserUtils.getStatusColor(status.name, true),
|
barColor: BDFDB.UserUtils.getStatusColor(status.name, true),
|
||||||
|
@ -791,7 +789,6 @@ module.exports = (_ => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
userStatusStore[id] = status;
|
userStatusStore[id] = status;
|
||||||
}
|
}
|
||||||
}, amounts.checkInterval * 1000);
|
}, amounts.checkInterval * 1000);
|
||||||
|
|
Loading…
Reference in New Issue