Speeds up loading of the Follow lists in start up by using the new isHex64 method
This commit is contained in:
@@ -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? =
|
||||
|
||||
Reference in New Issue
Block a user