Skip to content

Commit

Permalink
fixed mute unmute not updating in profile screen
Browse files Browse the repository at this point in the history
  • Loading branch information
aliseyalvi committed Oct 22, 2023
1 parent a11c0dd commit cfb91e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/containers/profileContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ProfileContainer extends Component {
user: null,
quickProfile: {
reputation: get(props, 'route.params.reputation', ''),
name: isOwnProfile ? currentAccountUsername : username
name: isOwnProfile ? currentAccountUsername : username,
},
reverseHeader: true,
deepLinkFilter: get(props, 'route.params.deepLinkFilter'),
Expand Down Expand Up @@ -166,6 +166,9 @@ class ProfileContainer extends Component {
mutes.splice(mutedIndex, 1);
currentAccount.mutes = mutes;
dispatch(updateCurrentAccount(currentAccount));
this.setState({
isMuted: false,
});
}
}

Expand Down Expand Up @@ -483,7 +486,6 @@ class ProfileContainer extends Component {
navigation.navigate(ROUTES.SCREENS.LOGIN);
return;
}

}

render() {
Expand Down

0 comments on commit cfb91e5

Please sign in to comment.