fix: #9620, fix notif delay

This commit is contained in:
Barış Soner Uşaklı
2021-06-21 11:17:57 -04:00
parent c92fc19b5c
commit 73f40e96a5
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
"chatEditDuration": 0, "chatEditDuration": 0,
"chatDeleteDuration": 0, "chatDeleteDuration": 0,
"chatMessageDelay": 200, "chatMessageDelay": 200,
"notificationSendDelay": 60,
"newbiePostDelayThreshold": 3, "newbiePostDelayThreshold": 3,
"postQueue": 0, "postQueue": 0,
"postQueueReputationThreshold": 0, "postQueueReputationThreshold": 0,

View File

@@ -47,7 +47,7 @@ module.exports = function (Messaging) {
queueObj.timeout = setTimeout(() => { queueObj.timeout = setTimeout(() => {
sendNotifications(fromUid, uids, roomId, queueObj.message); sendNotifications(fromUid, uids, roomId, queueObj.message);
}, (parseFloat(meta.config.notificationSendDelay) || 60) * 1000); }, meta.config.notificationSendDelay * 1000);
}; };
async function sendNotifications(fromuid, uids, roomId, messageObj) { async function sendNotifications(fromuid, uids, roomId, messageObj) {