This commit is contained in:
Barış Soner Uşaklı
2016-10-11 23:24:53 +03:00
committed by GitHub
parent dfc8ceef9e
commit 1cf07a6fc5

View File

@@ -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);
}