Update src/components/views/settings/tabs/user/SecurityUserSettingsTab.js

Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
Agusti Bau 2020-04-22 20:03:13 +02:00 committed by GitHub
parent ff3272061c
commit 5163232081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ export default class SecurityUserSettingsTab extends React.Component {
const index = currentlyIgnoredUserIds.indexOf(userId); const index = currentlyIgnoredUserIds.indexOf(userId);
if (index !== -1) { if (index !== -1) {
currentlyIgnoredUserIds.splice(index, 1); currentlyIgnoredUserIds.splice(index, 1);
this.setState(({waitingUnignored})=>({waitingUnignored: [...waitingUnignored, userId]})); this.setState(({waitingUnignored}) => ({waitingUnignored: [...waitingUnignored, userId]}));
MatrixClientPeg.get().setIgnoredUsers(currentlyIgnoredUserIds); MatrixClientPeg.get().setIgnoredUsers(currentlyIgnoredUserIds);
} }
}; };