Fixed Unignore state variable naming missmatch

Signed-off-by: Agusti Bau <agustibau@gmail.com>
pull/21833/head
Agusti Bau 2020-04-21 22:25:37 +02:00
parent 355539feb5
commit 7a42caa326
1 changed files with 5 additions and 5 deletions

View File

@ -89,13 +89,13 @@ export default class SecurityUserSettingsTab extends React.Component {
// Don't use this.state to get the ignored user list as it might be
// ever so slightly outdated. Instead, prefer to get a fresh list and
// update that.
const ignoredUsers = MatrixClientPeg.get().getIgnoredUsers();
const index = ignoredUsers.indexOf(userId);
const ignoredUserIds = MatrixClientPeg.get().getIgnoredUsers();
const index = ignoredUserIds.indexOf(userId);
if (index !== -1) {
ignoredUsers.splice(index, 1);
MatrixClientPeg.get().setIgnoredUsers(ignoredUsers);
ignoredUserIds.splice(index, 1);
MatrixClientPeg.get().setIgnoredUsers(ignoredUserIds);
}
this.setState({ignoredUsers});
this.setState({ignoredUserIds});
};
_getInvitedRooms = () => {