v1.18.x
barisusakli 8 years ago
parent 7107f7f4a1
commit 9b59bc3247

@ -1,6 +1,6 @@
'use strict';
/* globals define, socket, app, ajaxify */
/* globals define, socket, app */
define('forum/chats/search', ['components'], function(components) {
@ -75,7 +75,9 @@ define('forum/chats/search', ['components'], function(components) {
return app.alertError(err.message);
}
if (roomId) {
Chats.switchChat(roomId);
require(['forum/chats'], function(chats) {
chats.switchChat(roomId);
});
} else {
app.newChat(userObj.uid);
}

Loading…
Cancel
Save