fix regression: open chat page when in chats route instead of in modal

This commit is contained in:
psychobunny
2016-10-23 12:04:58 -04:00
parent 1d9c2f49d2
commit ee4943c485

View File

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