Merge branch 'soru/throw-on-no-valid-olm-session' into 'main'

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

See merge request famedly/famedlysdk!596
This commit is contained in:
Krille Fear 2020-12-31 09:48:55 +00:00
commit ed8af418f0
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) {