From 2b096019d671fca622ba5a29764807ca2f1e2fb5 Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Fri, 12 May 2023 11:32:09 +1000 Subject: [PATCH] refactor: remove populate public key cache if needed call which seems unnecessary at that point, maybe UserView refs have changed since 2020 --- .../main/java/org/thoughtcrime/securesms/contacts/UserView.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/contacts/UserView.kt b/app/src/main/java/org/thoughtcrime/securesms/contacts/UserView.kt index 35e257fe84..72c9749f9b 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/contacts/UserView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/contacts/UserView.kt @@ -54,9 +54,6 @@ class UserView : LinearLayout { val contact = DatabaseComponent.get(context).sessionContactDatabase().getContactWithSessionID(publicKey) return contact?.displayName(Contact.ContactContext.REGULAR) ?: publicKey } - MessagingModuleConfiguration.shared.storage.getThreadId(user.address)?.let { threadID -> - MentionManagerUtilities.populateUserPublicKeyCacheIfNeeded(threadID, context) // FIXME: This is a bad place to do this - } val address = user.address.serialize() binding.profilePictureView.root.glide = glide binding.profilePictureView.root.update(user)