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 {
|
private fun isValidHex(key: String): Boolean {
|
||||||
if (key.isBlank()) return false
|
|
||||||
if (key.length != 64) return false
|
if (key.length != 64) return false
|
||||||
if (key.contains(':')) return false
|
return Hex.isHex64(key)
|
||||||
|
|
||||||
return Hex.isHex(key)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun checkGetOrCreateAddressableNote(key: String): AddressableNote? =
|
fun checkGetOrCreateAddressableNote(key: String): AddressableNote? =
|
||||||
|
|||||||
Reference in New Issue
Block a user