redirect to correct route on Chats.leave

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

@ -290,7 +290,7 @@ define('forum/chats', [
return app.alertError(err.message); return app.alertError(err.message);
} }
if (parseInt(roomId, 10) === ajaxify.data.roomId) { if (parseInt(roomId, 10) === ajaxify.data.roomId) {
ajaxify.go('chats'); ajaxify.go('user/' + ajaxify.data.userslug + '/chats');
} else { } else {
el.remove(); el.remove();
} }

Loading…
Cancel
Save