Speeds up loading of the Follow lists in start up by using the new isHex64 method

This commit is contained in:
Vitor Pamplona
2025-10-06 15:04:12 -04:00
parent 0348454e36
commit b8ad2961b9
@@ -414,11 +414,8 @@ object LocalCache : ILocalCache {
}
private fun isValidHex(key: String): Boolean {
if (key.isBlank()) return false
if (key.length != 64) return false
if (key.contains(':')) return false
return Hex.isHex(key)
return Hex.isHex64(key)
}
fun checkGetOrCreateAddressableNote(key: String): AddressableNote? =