mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 13:51:49 +02:00
Merge pull request #5059 from pichalite/patch-1
redirect to correct route on Chats.leave
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ define('forum/chats/search', ['components'], function(components) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
if (roomId) {
|
||||
ajaxify.go('chats/' + roomId);
|
||||
Chats.switchChat(roomId);
|
||||
} else {
|
||||
app.newChat(userObj.uid);
|
||||
}
|
||||
@@ -84,4 +84,4 @@ define('forum/chats/search', ['components'], function(components) {
|
||||
}
|
||||
|
||||
return search;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user