fix room enter

v1.18.x
barisusakli
parent d9af2242a7
commit 30a9b66b31

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

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

Loading…
Cancel
Save