From bef1e5c469f0b906da991393a077971e71e3fea4 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Thu, 28 Nov 2019 11:13:18 +1100 Subject: [PATCH] Fix note to self icon not showing correctly. --- .../thoughtcrime/securesms/components/AvatarImageView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/components/AvatarImageView.java b/src/org/thoughtcrime/securesms/components/AvatarImageView.java index 8a6d2a84b5..294657c121 100644 --- a/src/org/thoughtcrime/securesms/components/AvatarImageView.java +++ b/src/org/thoughtcrime/securesms/components/AvatarImageView.java @@ -125,7 +125,9 @@ public class AvatarImageView extends AppCompatImageView { requestManager.clear(this); recipientContactPhoto = photo; - Drawable fallbackContactPhotoDrawable = photo.recipient.getFallbackContactPhotoDrawable(getContext(), inverted); + Drawable fallbackContactPhotoDrawable = recipient.isLocalNumber() + ? new ResourceContactPhoto(R.drawable.ic_note_to_self).asDrawable(getContext(), recipient.getColor().toAvatarColor(getContext()), inverted) + : photo.recipient.getFallbackContactPhotoDrawable(getContext(), inverted); if (photo.contactPhoto != null) { requestManager.load(photo.contactPhoto)