From c3459e6820c52f397365ae325c3028984016101a Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 21 Jan 2023 20:46:45 +0100 Subject: [PATCH] feat: Always set a cancel reason on failure --- packages/moxxmpp/lib/src/xeps/xep_0384/xep_0384.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/moxxmpp/lib/src/xeps/xep_0384/xep_0384.dart b/packages/moxxmpp/lib/src/xeps/xep_0384/xep_0384.dart index 6ea142a..dc10333 100644 --- a/packages/moxxmpp/lib/src/xeps/xep_0384/xep_0384.dart +++ b/packages/moxxmpp/lib/src/xeps/xep_0384/xep_0384.dart @@ -361,7 +361,7 @@ abstract class BaseOmemoManager extends XmppManagerBase { // support OMEMO:2 cancelReason: result.jidEncryptionErrors[toJid.toString()] is NoKeyMaterialAvailableException ? OmemoNotSupportedForContactException() : - null, + UnknownOmemoError(), cancel: true, ); }