Skip to content

Commit

Permalink
Merge pull request #419 from FineFindus/fix/bot-icon
Browse files Browse the repository at this point in the history
fix(Search): display bot icon only for bots
  • Loading branch information
LucasGGamerM authored May 27, 2024
2 parents 18ac042 + 6cb8961 commit 38996d8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ public void onBind(AccountViewModel item){
pronouns.setVisibility(pronounsString.isPresent() ? View.VISIBLE : View.GONE);
pronounsString.ifPresent(p -> HtmlParser.setTextWithCustomEmoji(pronouns, p, item.account.emojis));

if(item.account.bot) {
botIcon.setVisibility(View.VISIBLE);
}
botIcon.setVisibility(item.account.bot ? View.VISIBLE : View.GONE);

/* unused in megalodon
boolean hasVerifiedLink=item.verifiedLink!=null;
Expand Down

0 comments on commit 38996d8

Please sign in to comment.