Update BadgesEverywhere.plugin.js

This commit is contained in:
Mirco Wittrien 2021-07-05 21:26:37 +02:00
parent 8ac9c4caba
commit 04059ce3e0
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,8 @@ module.exports = (_ => {
cacheTimeout = BDFDB.TimeUtils.timeout(_ => BDFDB.DataUtils.save(loadedUsers, this, "badgeCache"), 5000);
if (requestQueue.id && requestQueue.id == e.methodArguments[0].user.id) {
while (requestedUsers[requestQueue.id].length) BDFDB.ReactUtils.forceUpdate(requestedUsers[requestQueue.id].pop());
BDFDB.ReactUtils.forceUpdate(requestedUsers[requestQueue.id]);
delete requestedUsers[requestQueue.id];
requestQueue.id = null;
BDFDB.TimeUtils.timeout(_ => this.runQueue(), 1000);
}