mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
redirect to correct route on Chats.leave
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user