From 1cf07a6fc5180778f438e295fa528acaae23c714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 11 Oct 2016 23:24:53 +0300 Subject: [PATCH] backport #5103 --- public/src/client/chats/search.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/src/client/chats/search.js b/public/src/client/chats/search.js index 947959f7a4..e75a51864a 100644 --- a/public/src/client/chats/search.js +++ b/public/src/client/chats/search.js @@ -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); }