Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2e76bc6

Browse files
committed
Element-R: fix rageshages
quick hacks to get rageshakes working in element R Fixes element-hq/element-web#24430
1 parent f1a08cd commit 2e76bc6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/rageshake/submit-rageshake.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ async function collectBugReport(opts: IOpts = {}, gzipLogs = true): Promise<Form
8484
body.append("user_id", client.credentials.userId);
8585
body.append("device_id", client.deviceId);
8686

87-
if (client.isCryptoEnabled()) {
87+
// TODO: make this work with rust crypto
88+
if (client.isCryptoEnabled() && client.crypto) {
8889
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
8990
if (client.getDeviceCurve25519Key) {
9091
keys.push(`curve25519:${client.getDeviceCurve25519Key()}`);

src/sentry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ function getEnabledLabs(): string {
116116
}
117117

118118
async function getCryptoContext(client: MatrixClient): Promise<CryptoContext> {
119-
if (!client.isCryptoEnabled()) {
119+
// TODO: make this work with rust crypto
120+
if (!client.isCryptoEnabled() || !client.crypto) {
120121
return {};
121122
}
122123
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];

0 commit comments

Comments
 (0)