From 73f40e96a508c16b87851748039d9148ce4f3752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 21 Jun 2021 11:17:57 -0400 Subject: [PATCH] fix: #9620, fix notif delay --- install/data/defaults.json | 1 + src/messaging/notifications.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install/data/defaults.json b/install/data/defaults.json index 2ea9833d79..bfbf6a4b39 100644 --- a/install/data/defaults.json +++ b/install/data/defaults.json @@ -19,6 +19,7 @@ "chatEditDuration": 0, "chatDeleteDuration": 0, "chatMessageDelay": 200, + "notificationSendDelay": 60, "newbiePostDelayThreshold": 3, "postQueue": 0, "postQueueReputationThreshold": 0, diff --git a/src/messaging/notifications.js b/src/messaging/notifications.js index 748fd2799c..895138c7e8 100644 --- a/src/messaging/notifications.js +++ b/src/messaging/notifications.js @@ -47,7 +47,7 @@ module.exports = function (Messaging) { queueObj.timeout = setTimeout(() => { sendNotifications(fromUid, uids, roomId, queueObj.message); - }, (parseFloat(meta.config.notificationSendDelay) || 60) * 1000); + }, meta.config.notificationSendDelay * 1000); }; async function sendNotifications(fromuid, uids, roomId, messageObj) {