From 053906b76dc6e68bea82728ac7a451dd307d2e06 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 28 Sep 2016 19:59:36 +0300 Subject: [PATCH] revert chat fix --- public/src/client/chats.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/public/src/client/chats.js b/public/src/client/chats.js index aaa5c37b2e..754018d96b 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -298,12 +298,7 @@ define('forum/chats', [ }; Chats.switchChat = function(roomid) { - var env = utils.findBootstrapEnvironment(); - if (env === 'xs' || env === 'sm') { - app.openChat(roomid); - } else { - ajaxify.go('user/' + ajaxify.data.userslug + '/chats/' + roomid); - } + ajaxify.go('user/' + ajaxify.data.userslug + '/chats/' + roomid); }; Chats.loadChatSince = function(roomId, chatContentEl, since) {