fix room enter

This commit is contained in:
barisusakli
2015-05-15 00:02:59 -04:00
parent d9af2242a7
commit 30a9b66b31
2 changed files with 3 additions and 1 deletions

View File

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

View File

@@ -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) {