fix room enter

v1.18.x
barisusakli 10 years ago
parent d9af2242a7
commit 30a9b66b31

@ -184,6 +184,7 @@ app.cacheBuster = null;
}, function(err) {
if (err) {
app.alertError(err.message);
return;
}
app.currentRoom = room;
});

@ -52,7 +52,7 @@ SocketMeta.buildTitle = function(socket, text, callback) {
SocketMeta.rooms.enter = function(socket, data, callback) {
if (!socket.uid) {
return;
return callback();
}
if (!data) {
@ -83,6 +83,7 @@ SocketMeta.rooms.enter = function(socket, data, callback) {
websockets.in(data.enter).emit('event:user_enter', data);
}
}
callback();
};
SocketMeta.rooms.getAll = function(socket, data, callback) {

Loading…
Cancel
Save