feat: Always set a cancel reason on failure

This commit is contained in:
PapaTutuWawa 2023-01-21 20:46:45 +01:00
parent e031e6d760
commit c3459e6820

View File

@ -361,7 +361,7 @@ abstract class BaseOmemoManager extends XmppManagerBase {
// support OMEMO:2 // support OMEMO:2
cancelReason: result.jidEncryptionErrors[toJid.toString()] is NoKeyMaterialAvailableException ? cancelReason: result.jidEncryptionErrors[toJid.toString()] is NoKeyMaterialAvailableException ?
OmemoNotSupportedForContactException() : OmemoNotSupportedForContactException() :
null, UnknownOmemoError(),
cancel: true, cancel: true,
); );
} }