Update crypto/keybackup.go
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled

Co-authored-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
Brad Murray 2025-02-27 17:19:29 -05:00 committed by GitHub
commit 6f3884ccf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,7 +56,7 @@ func (mach *OlmMachine) GetAndVerifyLatestKeyBackupVersion(ctx context.Context,
// from a verified device belonging to the same user."
megolmBackupDerivedPublicKey := id.Ed25519(base64.RawStdEncoding.EncodeToString(megolmBackupKey.PublicKey().Bytes()))
if megolmBackupKey != nil && versionInfo.AuthData.PublicKey == megolmBackupDerivedPublicKey {
log.Debug().Msg("key backup is trusted based on public key")
log.Debug().Msg("key backup is trusted based on derived public key")
return versionInfo, nil
} else {
log.Debug().