refactor: remove populate public key cache if needed call which seems unnecessary at that point, maybe UserView refs have changed since 2020

This commit is contained in:
0x330a 2023-05-12 11:32:09 +10:00
parent da330273c8
commit 2b096019d6

View File

@ -54,9 +54,6 @@ class UserView : LinearLayout {
val contact = DatabaseComponent.get(context).sessionContactDatabase().getContactWithSessionID(publicKey) val contact = DatabaseComponent.get(context).sessionContactDatabase().getContactWithSessionID(publicKey)
return contact?.displayName(Contact.ContactContext.REGULAR) ?: 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() val address = user.address.serialize()
binding.profilePictureView.root.glide = glide binding.profilePictureView.root.glide = glide
binding.profilePictureView.root.update(user) binding.profilePictureView.root.update(user)