only append crypto details if crypto is enabled
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
0153f39c10
commit
f91565c231
1 changed files with 7 additions and 5 deletions
|
@ -96,12 +96,14 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
|
||||||
body.append('device_id', client.deviceId);
|
body.append('device_id', client.deviceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (client.isCryptoEnabled()) {
|
||||||
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()}`);
|
||||||
}
|
}
|
||||||
body.append('device_keys', keys.join(', '));
|
body.append('device_keys', keys.join(', '));
|
||||||
body.append('cross_signing_key', client.getCrossSigningId());
|
body.append('cross_signing_key', client.getCrossSigningId());
|
||||||
|
}
|
||||||
|
|
||||||
if (opts.label) {
|
if (opts.label) {
|
||||||
body.append('label', opts.label);
|
body.append('label', opts.label);
|
||||||
|
|
Loading…
Reference in a new issue