From 734ec0357b74788f77190df14c2c30924b77c511 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Thu, 31 Dec 2020 10:45:22 +0100 Subject: [PATCH] fix: Throw an error if all existing olm sessions are corrupted --- lib/encryption/olm_manager.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/encryption/olm_manager.dart b/lib/encryption/olm_manager.dart index fe89a30b..fc678728 100644 --- a/lib/encryption/olm_manager.dart +++ b/lib/encryption/olm_manager.dart @@ -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) {