diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 2435042289..7f94eb1b66 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -290,7 +290,7 @@ define('forum/chats', [ return app.alertError(err.message); } if (parseInt(roomId, 10) === ajaxify.data.roomId) { - ajaxify.go('chats'); + ajaxify.go('user/' + ajaxify.data.userslug + '/chats'); } else { el.remove(); } diff --git a/public/src/client/chats/search.js b/public/src/client/chats/search.js index 3645db282f..947959f7a4 100644 --- a/public/src/client/chats/search.js +++ b/public/src/client/chats/search.js @@ -75,7 +75,7 @@ define('forum/chats/search', ['components'], function(components) { return app.alertError(err.message); } if (roomId) { - ajaxify.go('chats/' + roomId); + Chats.switchChat(roomId); } else { app.newChat(userObj.uid); } @@ -84,4 +84,4 @@ define('forum/chats/search', ['components'], function(components) { } return search; -}); \ No newline at end of file +});