mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #7951, don't send notification for system messages
This commit is contained in:
@@ -31,7 +31,9 @@ module.exports = function (Messaging) {
|
|||||||
Messaging.pushUnreadCount(uid);
|
Messaging.pushUnreadCount(uid);
|
||||||
sockets.in('uid_' + uid).emit('event:chats.receive', data);
|
sockets.in('uid_' + uid).emit('event:chats.receive', data);
|
||||||
});
|
});
|
||||||
|
if (messageObj.system) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Delayed notifications
|
// Delayed notifications
|
||||||
var queueObj = Messaging.notifyQueue[fromUid + ':' + roomId];
|
var queueObj = Messaging.notifyQueue[fromUid + ':' + roomId];
|
||||||
if (queueObj) {
|
if (queueObj) {
|
||||||
|
|||||||
Reference in New Issue
Block a user