mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 18:30:20 +01:00
Show verified badge on Note to Self.
This commit is contained in:
committed by
Greyson Parrelli
parent
19381342b3
commit
6a5f5f4ffa
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user