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