mirror of
https://github.com/oxen-io/session-android.git
synced 2025-11-10 10:05:31 +00:00
Use proper radix for the public key number conversion.
This commit is contained in:
@@ -23,7 +23,7 @@ object AvatarPlaceholderGenerator {
|
|||||||
if (hashString.length >= 12 && hashString.matches(hexRegex)) {
|
if (hashString.length >= 12 && hashString.matches(hexRegex)) {
|
||||||
hash = hashString.substring(0 until 12).toLong(16)
|
hash = hashString.substring(0 until 12).toLong(16)
|
||||||
} else {
|
} else {
|
||||||
hash = hashString.toLong()
|
hash = hashString.toLong(16)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not cache color array, it may be different depends on the current theme.
|
// Do not cache color array, it may be different depends on the current theme.
|
||||||
|
|||||||
Reference in New Issue
Block a user