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

View file

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