Merge pull request #4572 from matrix-org/dbkr/rageshake_work_if_no_client

Fix rageshake with no matrix client
This commit is contained in:
David Baker 2020-05-11 16:55:14 +01:00 committed by GitHub
commit b1e266823f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,6 @@ export default async function sendBugReport(bugReportEndpoint: string, opts: IOp
if (client) {
body.append('user_id', client.credentials.userId);
body.append('device_id', client.deviceId);
}
if (client.isCryptoEnabled()) {
const keys = [`ed25519:${client.getDeviceEd25519Key()}`];
@ -111,6 +110,7 @@ export default async function sendBugReport(bugReportEndpoint: string, opts: IOp
body.append('device_keys', keys.join(', '));
body.append('cross_signing_key', client.getCrossSigningId());
}
}
if (opts.label) {
body.append('label', opts.label);