search user and initiate chat from expanded chat page

This commit is contained in:
pichalite
2016-02-08 23:01:23 +00:00
parent 104d470480
commit 4b5d5b4bd9
2 changed files with 77 additions and 1 deletions

View File

@@ -276,7 +276,12 @@ app.cacheBuster = null;
if (err) {
return app.alertError(err.message);
}
app.openChat(roomId);
if (!ajaxify.currentPage.match(/^chats\//)) {
app.openChat(roomId);
}
else {
ajaxify.go('chats/' + roomId);
}
});
};