Merge pull request #419 from FineFindus/fix/bot-icon

fix(Search): display bot icon only for bots
This commit is contained in:
LucasGGamerM 2024-05-27 09:43:51 -03:00 committed by GitHub
commit 38996d8921
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -148,9 +148,7 @@ public class AccountViewHolder extends BindableViewHolder<AccountViewModel> impl
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;