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

Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com>
pull/21833/head
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
1 changed files with 1 additions and 1 deletions

View File

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