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

@@ -62,7 +62,7 @@ public class FromTextView extends SimpleEmojiTextView {
builder.append(suffix);
}
if (recipient.isReleaseNotes()) {
if (recipient.showVerified()) {
Drawable official = ContextUtil.requireDrawable(getContext(), R.drawable.ic_official_20);
official.setBounds(0, 0, ViewUtil.dpToPx(20), ViewUtil.dpToPx(20));

View File

@@ -39,7 +39,7 @@ object BioTextPreference {
override fun getHeadlineText(context: Context): CharSequence {
val name = recipient.getDisplayNameOrUsername(context)
return if (recipient.isReleaseNotes) {
return if (recipient.showVerified()) {
SpannableStringBuilder(name).apply {
SpanUtil.appendCenteredImageSpan(this, ContextUtil.requireDrawable(context, R.drawable.ic_official_28), 28, 28)
}