add missing awaits

pull/21833/head
Michael Telatynski 2020-01-23 11:55:08 +00:00
parent 873952a83e
commit 1747a62118
1 changed files with 2 additions and 2 deletions

View File

@ -1378,9 +1378,9 @@ export default createReactClass({
const inviteEvent = myMember.events.member;
const ignoredUsers = MatrixClientPeg.get().getIgnoredUsers();
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' });
this.setState({
rejecting: false,