mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
more tests
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
"use strict";
|
||||
|
||||
var async = require('async');
|
||||
var validator = require('validator');
|
||||
|
||||
@@ -82,7 +81,7 @@ SocketModules.chats.send = function (socket, data, callback) {
|
||||
function (message, next) {
|
||||
Messaging.notifyUsersInRoom(socket.uid, data.roomId, message);
|
||||
user.updateOnlineUsers(socket.uid);
|
||||
next();
|
||||
next(null, message);
|
||||
}
|
||||
], callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user