From 8686691a5af7148e42f85d7ff006b90aef071d9c Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Tue, 5 Dec 2017 10:27:34 -0800 Subject: [PATCH] Fix missing recipient calculation for system contact Fixes #7244 --- .../thoughtcrime/securesms/recipients/RecipientProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java b/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java index 35611c65b1..a05912c12a 100644 --- a/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java +++ b/src/org/thoughtcrime/securesms/recipients/RecipientProvider.java @@ -21,7 +21,6 @@ import android.net.Uri; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.text.TextUtils; -import android.util.Log; import org.thoughtcrime.securesms.R; import org.thoughtcrime.securesms.color.MaterialColor; @@ -113,7 +112,8 @@ class RecipientProvider { if (!settings.isPresent() && STATIC_DETAILS.containsKey(address.serialize())) { return STATIC_DETAILS.get(address.serialize()); } else { - return new RecipientDetails(null, null, false, settings.orNull(), null); + boolean systemContact = settings.isPresent() && !TextUtils.isEmpty(settings.get().getSystemDisplayName()); + return new RecipientDetails(null, null, systemContact, settings.orNull(), null); } }