Don't show potential session keys in logs

This commit is contained in:
Christian Pauly 2020-08-10 10:42:14 +02:00
parent 6170c79fe1
commit c184dfba6b
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class OlmManager {
return event;
}
if (event.content['algorithm'] != 'm.olm.v1.curve25519-aes-sha2') {
throw ('Unknown algorithm: ${event.content}');
throw ('Unknown algorithm: ${event.content['algorithm']}');
}
if (!event.content['ciphertext'].containsKey(identityKey)) {
throw ("The message isn't sent for this device");