Use leaveRoomChain when leaving a room

Requires https://github.com/matrix-org/matrix-js-sdk/pull/868
Fixes https://github.com/vector-im/riot-web/issues/8539

We don't need to use leaveRoomChain when rejecting invites because we won't have the references needed. This leaves the couple spots where we do actually leave a room, and use the new function for that.
This commit is contained in:
Travis Ralston 2019-03-22 17:36:54 -06:00
parent 68997f9652
commit a34a8bb425
2 changed files with 28 additions and 15 deletions

View file

@ -431,7 +431,7 @@ export const CommandMap = {
if (!targetRoomId) targetRoomId = roomId;
return success(
cli.leave(targetRoomId).then(function() {
cli.leaveRoomChain(targetRoomId).then(function() {
dis.dispatch({action: 'view_next_room'});
}),
);