chat history access

This commit is contained in:
barisusakli
2016-09-20 14:26:26 +03:00
parent 598c47b77f
commit 202edfa47e
4 changed files with 66 additions and 57 deletions

View File

@@ -31,7 +31,7 @@ define('chat', [
if (!ajaxify.currentPage.match(/^chats\//)) {
app.openChat(roomId);
} else {
ajaxify.go('chats/' + roomId);
ajaxify.go('user/' + app.user.userslug + '/chats/' + roomId);
}
});
@@ -214,7 +214,7 @@ define('chat', [
components.get('chat/input').val(text);
});
ajaxify.go('chats/' + chatModal.attr('roomId'));
ajaxify.go('user/' + app.user.userslug + '/chats/' + chatModal.attr('roomId'));
module.close(chatModal);
}