Skip to content

Node.js based forum software built for the modern web

fix: #7951, don't send notification for system messages

Baris Usaklic01b0fbd8c0d
diff --git a/src/messaging/notifications.js b/src/messaging/notifications.js
index 6886b2c08a..0d88e3f889 100644
--- a/src/messaging/notifications.js
+++ b/src/messaging/notifications.js
@@ -31,7 +31,9 @@ module.exports = function (Messaging) {
Messaging.pushUnreadCount(uid);
sockets.in('uid_' + uid).emit('event:chats.receive', data);
});
-
+ if (messageObj.system) {
+ return;
+ }
// Delayed notifications
var queueObj = Messaging.notifyQueue[fromUid + ':' + roomId];
if (queueObj) {