fix: #9620, fix notif delay

v1.18.x
Barış Soner Uşaklı 4 years ago
parent c92fc19b5c
commit 73f40e96a5

@ -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,

@ -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) {

Loading…
Cancel
Save