mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
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:
parent
da330273c8
commit
2b096019d6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user