mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 11:15:53 +03:00
Fixed Unignore state variable naming missmatch
Signed-off-by: Agusti Bau <agustibau@gmail.com>
This commit is contained in:
parent
355539feb5
commit
7a42caa326
1 changed files with 5 additions and 5 deletions
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in a new issue