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:
@@ -84,7 +84,8 @@ async function collectBugReport(opts: IOpts = {}, gzipLogs = true): Promise<Form
|
|||||||
body.append("user_id", client.credentials.userId);
|
body.append("user_id", client.credentials.userId);
|
||||||
body.append("device_id", client.deviceId);
|
body.append("device_id", client.deviceId);
|
||||||
|
|
||||||
if (client.isCryptoEnabled()) {
|
// TODO: make this work with rust crypto
|
||||||
|
if (client.isCryptoEnabled() && client.crypto) {
|
||||||
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
||||||
if (client.getDeviceCurve25519Key) {
|
if (client.getDeviceCurve25519Key) {
|
||||||
keys.push(`curve25519:${client.getDeviceCurve25519Key()}`);
|
keys.push(`curve25519:${client.getDeviceCurve25519Key()}`);
|
||||||
|
|||||||
+2
-1
@@ -116,7 +116,8 @@ function getEnabledLabs(): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getCryptoContext(client: MatrixClient): Promise<CryptoContext> {
|
async function getCryptoContext(client: MatrixClient): Promise<CryptoContext> {
|
||||||
if (!client.isCryptoEnabled()) {
|
// TODO: make this work with rust crypto
|
||||||
|
if (!client.isCryptoEnabled() || !client.crypto) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
|
||||||
|
|||||||
Reference in New Issue
Block a user