From ee4943c485bf238dd1b5deff74777d46412871cf Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sun, 23 Oct 2016 12:04:58 -0400 Subject: [PATCH] fix regression: open chat page when in chats route instead of in modal --- public/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/app.js b/public/src/app.js index cf8232e3e4..0659268f18 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -310,7 +310,7 @@ app.cacheBuster = null; return app.alertError(err.message); } - if (!ajaxify.currentPage.startsWith('chats')) { + if (!ajaxify.data.template.chats) { app.openChat(roomId); } else { ajaxify.go('chats/' + roomId);