Show verified badge on Note to Self.

This commit is contained in:
Cody Henthorne
2022-03-23 11:35:26 -04:00
committed by Greyson Parrelli
parent 19381342b3
commit 6a5f5f4ffa
8 changed files with 14 additions and 14 deletions

View File

@@ -83,7 +83,7 @@ public class ConversationBannerView extends ConstraintLayout {
public String setTitle(@NonNull Recipient recipient) {
SpannableStringBuilder title = new SpannableStringBuilder(recipient.isSelf() ? getContext().getString(R.string.note_to_self) : recipient.getDisplayNameOrUsername(getContext()));
if (recipient.isReleaseNotes()) {
if (recipient.showVerified()) {
SpanUtil.appendCenteredImageSpan(title, ContextUtil.requireDrawable(getContext(), R.drawable.ic_official_28), 28, 28);
}
contactTitle.setText(title);

View File

@@ -105,7 +105,7 @@ public class ConversationTitleView extends RelativeLayout {
endDrawable = DrawableUtil.tint(endDrawable, ContextCompat.getColor(getContext(), R.color.signal_inverse_transparent_80));
}
if (recipient != null && recipient.isReleaseNotes()) {
if (recipient != null && recipient.showVerified()) {
endDrawable = ContextUtil.requireDrawable(getContext(), R.drawable.ic_official_24);
}