Skip to content

Commit

Permalink
fix(mute-conversation): don't show mute conversation toggle on schedu…
Browse files Browse the repository at this point in the history
…led posts
  • Loading branch information
LucasGGamerM committed Sep 21, 2023
1 parent f5aff4d commit 1edcf84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ private void updateOptionsMenu(){
menu.findItem(R.id.delete_and_redraft).setVisible(!isPostScheduled && item.status!=null && isOwnPost);
menu.findItem(R.id.pin).setVisible(!isPostScheduled && item.status!=null && isOwnPost && !item.status.pinned);
menu.findItem(R.id.unpin).setVisible(!isPostScheduled && item.status!=null && isOwnPost && item.status.pinned);
menu.findItem(R.id.mute_conversation).setVisible((item.status!=null && !item.status.muted) && (isOwnPost || item.status.mentions.stream().anyMatch(m->{
menu.findItem(R.id.mute_conversation).setVisible((item.status!=null && !item.status.muted && !isPostScheduled) && (isOwnPost || item.status.mentions.stream().anyMatch(m->{
if(m==null)
return false;
return AccountSessionManager.get(item.parentFragment.getAccountID()).self.id.equals(m.id) ||
Expand Down

0 comments on commit 1edcf84

Please sign in to comment.