mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
chore: lint notifications.js
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var user = require('../user');
|
const user = require('../user');
|
||||||
var notifications = require('../notifications');
|
const notifications = require('../notifications');
|
||||||
var sockets = require('../socket.io');
|
const sockets = require('../socket.io');
|
||||||
var plugins = require('../plugins');
|
const plugins = require('../plugins');
|
||||||
var meta = require('../meta');
|
const meta = require('../meta');
|
||||||
|
|
||||||
module.exports = function (Messaging) {
|
module.exports = function (Messaging) {
|
||||||
Messaging.notifyQueue = {}; // Only used to notify a user of a new chat message, see Messaging.notifyUser
|
Messaging.notifyQueue = {}; // Only used to notify a user of a new chat message, see Messaging.notifyUser
|
||||||
@@ -34,7 +34,7 @@ module.exports = function (Messaging) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Delayed notifications
|
// Delayed notifications
|
||||||
var queueObj = Messaging.notifyQueue[fromUid + ':' + roomId];
|
let queueObj = Messaging.notifyQueue[fromUid + ':' + roomId];
|
||||||
if (queueObj) {
|
if (queueObj) {
|
||||||
queueObj.message.content += '\n' + messageObj.content;
|
queueObj.message.content += '\n' + messageObj.content;
|
||||||
clearTimeout(queueObj.timeout);
|
clearTimeout(queueObj.timeout);
|
||||||
|
|||||||
Reference in New Issue
Block a user