Merge pull request #5059 from pichalite/patch-1

redirect to correct route on Chats.leave
v1.18.x
Barış Soner Uşaklı 8 years ago committed by GitHub
commit d171f4049d

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

Loading…
Cancel
Save