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

@ -75,7 +75,7 @@ define('forum/chats/search', ['components'], function(components) {
return app.alertError(err.message); return app.alertError(err.message);
} }
if (roomId) { if (roomId) {
ajaxify.go('chats/' + roomId); Chats.switchChat(roomId);
} else { } else {
app.newChat(userObj.uid); app.newChat(userObj.uid);
} }

Loading…
Cancel
Save