mirror of https://github.com/vector-im/riot-web
Fixed Unignore state variable naming missmatch
Signed-off-by: Agusti Bau <agustibau@gmail.com>pull/21833/head
parent
355539feb5
commit
7a42caa326
|
@ -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
|
// 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
|
// ever so slightly outdated. Instead, prefer to get a fresh list and
|
||||||
// update that.
|
// update that.
|
||||||
const ignoredUsers = MatrixClientPeg.get().getIgnoredUsers();
|
const ignoredUserIds = MatrixClientPeg.get().getIgnoredUsers();
|
||||||
const index = ignoredUsers.indexOf(userId);
|
const index = ignoredUserIds.indexOf(userId);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
ignoredUsers.splice(index, 1);
|
ignoredUserIds.splice(index, 1);
|
||||||
MatrixClientPeg.get().setIgnoredUsers(ignoredUsers);
|
MatrixClientPeg.get().setIgnoredUsers(ignoredUserIds);
|
||||||
}
|
}
|
||||||
this.setState({ignoredUsers});
|
this.setState({ignoredUserIds});
|
||||||
};
|
};
|
||||||
|
|
||||||
_getInvitedRooms = () => {
|
_getInvitedRooms = () => {
|
||||||
|
|
Loading…
Reference in New Issue