Skip to content

Commit

Permalink
Merge pull request #2787 from ecency/sa/mute-unmute-bug
Browse files Browse the repository at this point in the history
[Bug Fix] mute unmute not updating in profile screen
  • Loading branch information
feruzm authored Oct 23, 2023
2 parents a11c0dd + cfb91e5 commit 9dae709
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 9dae709

Please sign in to comment.