You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
Update src/components/views/settings/tabs/user/SecurityUserSettingsTab.js
Co-Authored-By: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
@@ -109,7 +109,7 @@ export default class SecurityUserSettingsTab extends React.Component {
|
|||||||
|
|
||||||
_onUserUnignored = async (userId) => {
|
_onUserUnignored = async (userId) => {
|
||||||
const {ignoredUserIds, waitingUnignored} = this.state;
|
const {ignoredUserIds, waitingUnignored} = this.state;
|
||||||
const currentlyIgnoredUserIds = ignoredUserIds.filter(e=> !waitingUnignored.includes(e));
|
const currentlyIgnoredUserIds = ignoredUserIds.filter(e => !waitingUnignored.includes(e));
|
||||||
|
|
||||||
const index = currentlyIgnoredUserIds.indexOf(userId);
|
const index = currentlyIgnoredUserIds.indexOf(userId);
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user