Skip to content

Commit

Permalink
chore: lint notifications.js
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Sep 28, 2020
1 parent 5b427a0 commit 4fc84e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/messaging/notifications.js
@@ -1,10 +1,10 @@
'use strict';

var user = require('../user');
var notifications = require('../notifications');
var sockets = require('../socket.io');
var plugins = require('../plugins');
var meta = require('../meta');
const user = require('../user');
const notifications = require('../notifications');
const sockets = require('../socket.io');
const plugins = require('../plugins');
const meta = require('../meta');

module.exports = function (Messaging) {
Messaging.notifyQueue = {}; // Only used to notify a user of a new chat message, see Messaging.notifyUser
Expand Down Expand Up @@ -34,7 +34,7 @@ module.exports = function (Messaging) {
return;
}
// Delayed notifications
var queueObj = Messaging.notifyQueue[fromUid + ':' + roomId];
let queueObj = Messaging.notifyQueue[fromUid + ':' + roomId];
if (queueObj) {
queueObj.message.content += '\n' + messageObj.content;
clearTimeout(queueObj.timeout);
Expand Down

0 comments on commit 4fc84e9

Please sign in to comment.