Element-R: fix rageshages (#10081)

quick hacks to get rageshakes working in element R

Fixes https://github.com/vector-im/element-web/issues/24430
This commit is contained in:
Richard van der Hoff 2023-02-06 10:50:34 +00:00 committed by GitHub
parent d4349bb361
commit 5ba8ecabb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -116,7 +116,8 @@ function getEnabledLabs(): string {
}
async function getCryptoContext(client: MatrixClient): Promise<CryptoContext> {
if (!client.isCryptoEnabled()) {
// TODO: make this work with rust crypto
if (!client.isCryptoEnabled() || !client.crypto) {
return {};
}
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];