plugin XEP-0373 and XEP-0374: Implementation of OX and OXIM:
GPGME is used as the GPG provider. rel 374
This commit is contained in:
parent
f160577a65
commit
6d1e942f43
1 changed files with 2710 additions and 34 deletions
|
|
@ -479,10 +479,10 @@ def make_session_manager(sat: SAT, profile: str) -> Type[omemo.SessionManager]:
|
|||
xml_tools.et_elt_2_domish_elt(element),
|
||||
item_id=str(bundle.device_id),
|
||||
extra={
|
||||
xep_0060.EXTRA_PUBLISH_OPTIONS: {
|
||||
xep_0060.OPT_MAX_ITEMS: "max"
|
||||
XEP_0060.EXTRA_PUBLISH_OPTIONS: {
|
||||
XEP_0060.OPT_MAX_ITEMS: "max"
|
||||
},
|
||||
xep_0060.EXTRA_ON_PRECOND_NOT_MET: "raise"
|
||||
XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "raise"
|
||||
}
|
||||
)
|
||||
except (error.StanzaError, Exception) as e:
|
||||
|
|
@ -519,8 +519,8 @@ def make_session_manager(sat: SAT, profile: str) -> Type[omemo.SessionManager]:
|
|||
xml_tools.et_elt_2_domish_elt(element),
|
||||
item_id=xep_0060.ID_SINGLETON,
|
||||
extra={
|
||||
xep_0060.EXTRA_PUBLISH_OPTIONS: { xep_0060.OPT_MAX_ITEMS: 1 },
|
||||
xep_0060.EXTRA_ON_PRECOND_NOT_MET: "publish_without_options"
|
||||
XEP_0060.EXTRA_PUBLISH_OPTIONS: { XEP_0060.OPT_MAX_ITEMS: 1 },
|
||||
XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "publish_without_options"
|
||||
}
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
@ -546,7 +546,6 @@ def make_session_manager(sat: SAT, profile: str) -> Type[omemo.SessionManager]:
|
|||
client,
|
||||
jid.JID(bare_jid),
|
||||
node,
|
||||
max_items=None,
|
||||
item_ids=[ str(device_id) ]
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
@ -653,11 +652,11 @@ def make_session_manager(sat: SAT, profile: str) -> Type[omemo.SessionManager]:
|
|||
xml_tools.et_elt_2_domish_elt(element),
|
||||
item_id=xep_0060.ID_SINGLETON,
|
||||
extra={
|
||||
xep_0060.EXTRA_PUBLISH_OPTIONS: {
|
||||
xep_0060.OPT_MAX_ITEMS: 1,
|
||||
xep_0060.OPT_ACCESS_MODEL: "open"
|
||||
XEP_0060.EXTRA_PUBLISH_OPTIONS: {
|
||||
XEP_0060.OPT_MAX_ITEMS: 1,
|
||||
XEP_0060.OPT_ACCESS_MODEL: "open"
|
||||
},
|
||||
xep_0060.EXTRA_ON_PRECOND_NOT_MET: "raise"
|
||||
XEP_0060.EXTRA_ON_PRECOND_NOT_MET: "raise"
|
||||
}
|
||||
)
|
||||
except (error.StanzaError, Exception) as e:
|
||||
|
|
|
|||
Loading…
Reference in a new issue