feat: Add cancelReason if recipient likely does not support OMEMO:2
This commit is contained in:
parent
6c63b53cf4
commit
e031e6d760
@ -357,6 +357,11 @@ abstract class BaseOmemoManager extends XmppManagerBase {
|
||||
other['encryption_error_devices'] = result.deviceEncryptionErrors;
|
||||
return state.copyWith(
|
||||
other: other,
|
||||
// If we have no device list for toJid, then the contact most likely does not
|
||||
// support OMEMO:2
|
||||
cancelReason: result.jidEncryptionErrors[toJid.toString()] is NoKeyMaterialAvailableException ?
|
||||
OmemoNotSupportedForContactException() :
|
||||
null,
|
||||
cancel: true,
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user