redirect to correct route on Chats.leave

v1.18.x
Anil Mandepudi 8 years ago committed by GitHub
parent 72775831d9
commit 9c646ce39c

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

Loading…
Cancel
Save