fix: Throw an error if all existing olm sessions are corrupted

This commit is contained in:
Sorunome 2020-12-31 10:45:22 +01:00
parent 65d07609d4
commit 734ec0357b
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ class OlmManager {
}
}
if (plaintext == null && type != 0) {
return event;
throw ('Unable to decrypt with any existing OLM session');
}
if (plaintext == null) {