mirror of
https://github.com/element-hq/element-android
synced 2024-11-26 19:35:42 +03:00
fix warning equals but no hashcode
This commit is contained in:
parent
4ecbf87cda
commit
70508544cd
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,10 @@ class BackupRecoveryKey(private val key: ByteArray) : IBackupRecoveryKey {
|
|||
return this.toBase58() == other.toBase58()
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
return key.contentHashCode()
|
||||
}
|
||||
|
||||
override fun toBase58() = computeRecoveryKey(key)
|
||||
|
||||
override fun toBase64() = key.toBase64NoPadding()
|
||||
|
|
Loading…
Reference in a new issue