Revert "[SES-2512] Rewrite ProfilePictureView (#1622)" (#1629)

This reverts commit 9919f716a7.

Co-authored-by: fanchao <git@fanchao.dev>
This commit is contained in:
Fanchao Liu
2024-08-21 09:30:02 +10:00
committed by GitHub
parent 9919f716a7
commit 8fc6679178
25 changed files with 386 additions and 246 deletions

View File

@@ -3,12 +3,10 @@ package org.session.libsession.avatars
import com.bumptech.glide.load.Key
import java.security.MessageDigest
data class PlaceholderAvatarPhoto(
val hashString: String,
val displayName: String?
) : Key {
class PlaceholderAvatarPhoto(val hashString: String,
val displayName: String): Key {
override fun updateDiskCacheKey(messageDigest: MessageDigest) {
messageDigest.update(hashString.encodeToByteArray())
messageDigest.update(displayName?.encodeToByteArray() ?: byteArrayOf())
messageDigest.update(displayName.encodeToByteArray())
}
}