Allow to mute and unmute own user from Home timeline

This commit is contained in:
Thomas 2023-06-05 17:29:08 +02:00
parent f6483c0ccb
commit 9375abffd3
1 changed files with 6 additions and 2 deletions

View File

@ -152,11 +152,15 @@ public class AccountAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder
if (account.relationShip.id.compareToIgnoreCase(BaseMainActivity.currentUserID) == 0) {
doAction = ProfileActivity.action.NOTHING;
accountViewHolder.binding.followAction.setVisibility(View.GONE);
accountViewHolder.binding.muteGroup.setVisibility(View.GONE);
accountViewHolder.binding.muteNotification.setVisibility(View.GONE);
accountViewHolder.binding.muteTimed.setVisibility(View.GONE);
accountViewHolder.binding.mute.setVisibility(View.GONE);
accountViewHolder.binding.block.setVisibility(View.GONE);
} else {
accountViewHolder.binding.followAction.setVisibility(View.VISIBLE);
accountViewHolder.binding.muteGroup.setVisibility(View.VISIBLE);
accountViewHolder.binding.muteNotification.setVisibility(View.VISIBLE);
accountViewHolder.binding.muteTimed.setVisibility(View.VISIBLE);
accountViewHolder.binding.mute.setVisibility(View.VISIBLE);
accountViewHolder.binding.block.setVisibility(View.VISIBLE);
}