From 3eb5ddf9613675e3998baa5f438800c99dd11235 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 29 Mar 2019 16:49:19 +0100 Subject: [PATCH] remove unneeded recipient-resolve --- .../securesms/recipients/Recipient.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/org/thoughtcrime/securesms/recipients/Recipient.java b/src/org/thoughtcrime/securesms/recipients/Recipient.java index 6dc238f14..4ef6ac3ef 100644 --- a/src/org/thoughtcrime/securesms/recipients/Recipient.java +++ b/src/org/thoughtcrime/securesms/recipients/Recipient.java @@ -57,7 +57,6 @@ public class Recipient implements RecipientModifiedListener { private @Nullable String name; private @Nullable String customLabel; - private final boolean resolving; private @Nullable Uri systemContactPhoto; private Uri contactUri; @@ -113,7 +112,6 @@ public class Recipient implements RecipientModifiedListener { this.blocked = false; this.profileName = null; this.profileAvatar = null; - this.resolving = false; } public synchronized @Nullable Uri getContactUri() { @@ -198,8 +196,7 @@ public class Recipient implements RecipientModifiedListener { } public synchronized @NonNull FallbackContactPhoto getFallbackContactPhoto() { - if (isResolving()) return new TransparentContactPhoto(); - else if (!TextUtils.isEmpty(name)) return new GeneratedContactPhoto(name); + if (!TextUtils.isEmpty(name)) return new GeneratedContactPhoto(name); else return new GeneratedContactPhoto("#"); } @@ -259,12 +256,6 @@ public class Recipient implements RecipientModifiedListener { notifyListeners(); } - public synchronized Recipient resolve() { - while (resolving) Util.wait(this, 0); - return this; - } - - @Override public boolean equals(Object o) { if (this == o) return true; @@ -298,7 +289,6 @@ public class Recipient implements RecipientModifiedListener { ", address=" + address + ", name='" + name + '\'' + ", customLabel='" + customLabel + '\'' + - ", resolving=" + resolving + ", systemContactPhoto=" + systemContactPhoto + ", contactUri=" + contactUri + ", blocked=" + blocked + @@ -311,10 +301,4 @@ public class Recipient implements RecipientModifiedListener { public void onModified(Recipient recipient) { notifyListeners(); } - - public synchronized boolean isResolving() { - return resolving; - } - - }