fix: add missing delete

isekai-main
Barış Soner Uşaklı 2 years ago
parent 3f8344804a
commit 2a9b3ee464

@ -60,6 +60,7 @@ module.exports = function (Messaging) {
const isOnline = await user.isOnline(uids); const isOnline = await user.isOnline(uids);
uids = uids.filter((uid, index) => !isOnline[index] && parseInt(fromuid, 10) !== parseInt(uid, 10)); uids = uids.filter((uid, index) => !isOnline[index] && parseInt(fromuid, 10) !== parseInt(uid, 10));
if (!uids.length) { if (!uids.length) {
delete Messaging.notifyQueue[`${fromuid}:${roomId}`];
return; return;
} }

Loading…
Cancel
Save