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

@@ -1149,6 +1149,10 @@ public class Recipient {
return isReleaseNotesRecipient;
}
public boolean showVerified() {
return isReleaseNotesRecipient || isSelf;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;

View File

@@ -181,7 +181,7 @@ public final class RecipientBottomSheetDialogFragment extends BottomSheetDialogF
Drawable systemContact = DrawableUtil.tint(ContextUtil.requireDrawable(requireContext(), R.drawable.ic_profile_circle_outline_16),
ContextCompat.getColor(requireContext(), R.color.signal_text_primary));
SpanUtil.appendCenteredImageSpan(nameBuilder, systemContact, 16, 16);
} else if (recipient.isReleaseNotes()) {
} else if (recipient.showVerified()) {
SpanUtil.appendCenteredImageSpan(nameBuilder, ContextUtil.requireDrawable(requireContext(), R.drawable.ic_official_28), 28, 28);
}
fullName.setText(nameBuilder);