mirror of https://github.com/vector-im/riot-web
add missing awaits
parent
873952a83e
commit
1747a62118
|
@ -1378,9 +1378,9 @@ export default createReactClass({
|
||||||
const inviteEvent = myMember.events.member;
|
const inviteEvent = myMember.events.member;
|
||||||
const ignoredUsers = MatrixClientPeg.get().getIgnoredUsers();
|
const ignoredUsers = MatrixClientPeg.get().getIgnoredUsers();
|
||||||
ignoredUsers.push(inviteEvent.getSender()); // de-duped internally in the js-sdk
|
ignoredUsers.push(inviteEvent.getSender()); // de-duped internally in the js-sdk
|
||||||
cli.setIgnoredUsers(ignoredUsers);
|
await cli.setIgnoredUsers(ignoredUsers);
|
||||||
|
|
||||||
cli.leave(this.state.roomId);
|
await cli.leave(this.state.roomId);
|
||||||
dis.dispatch({ action: 'view_next_room' });
|
dis.dispatch({ action: 'view_next_room' });
|
||||||
this.setState({
|
this.setState({
|
||||||
rejecting: false,
|
rejecting: false,
|
||||||
|
|
Loading…
Reference in New Issue