fix author notification handler

pull/2295/head
John McLear 2014-11-04 22:37:10 +00:00
parent af3e8e5e15
commit f418dfa205
1 changed files with 8 additions and 3 deletions

View File

@ -1179,8 +1179,14 @@ function handleClientReady(client, message)
client.broadcast.to(padIds.padId).json.send(messageToTheOtherUsers); client.broadcast.to(padIds.padId).json.send(messageToTheOtherUsers);
//Run trough all sessions of this pad //Run trough all sessions of this pad
/* var roomClients = [], room = socketio.sockets.adapter.rooms[pad.id];
async.forEach(socketio.sockets.clients(padIds.padId), function(roomClient, callback) if (room) {
for (var id in room) {
roomClients.push(socketio.sockets.adapter.nsp.connected[id]);
}
}
async.forEach(roomClients, function(roomClient, callback)
{ {
var author; var author;
@ -1226,7 +1232,6 @@ function handleClientReady(client, message)
} }
], callback); ], callback);
}, callback); }, callback);
*/
} }
],function(err) ],function(err)
{ {