Node.js based forum software built for the modern web
fix room enter
barisusakli30a9b66b316a
diff --git a/public/src/app.js b/public/src/app.jsindex c09f8c6cd4..5484d9de50 100644--- a/public/src/app.js+++ b/public/src/app.js@@ -184,6 +184,7 @@ app.cacheBuster = null;}, function(err) {if (err) {app.alertError(err.message);+ return;}app.currentRoom = room;});diff --git a/src/socket.io/meta.js b/src/socket.io/meta.jsindex d6fdea73cb..890a40c3e0 100644--- a/src/socket.io/meta.js+++ b/src/socket.io/meta.js@@ -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) {