redirect to correct route on Chats.leave

This commit is contained in:
Anil Mandepudi
2016-09-26 15:56:36 -07:00
committed by GitHub
parent 72775831d9
commit 9c646ce39c

View File

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