plugin XEP-0166, XEP-0234: better management of terminate:

- new `text` argument to specify human readable reason of termination
- handling of `FirstError` (used when a error happens in a DeferredList)
- handling of `StanzaError`
- (XEP-0234): show human readable text of the reason if present
This commit is contained in:
Goffi 2021-05-05 15:37:33 +02:00
commit 8ed9e310c5

View file

@ -698,6 +698,8 @@ class XEP_0234:
first_child = jingle_elt.firstChildElement()
if first_child is not None:
reason = first_child.name
if jingle_elt.text is not None:
reason = f"{reason} - {jingle_elt.text}"
else:
reason = C.PROGRESS_ERROR_FAILED
self.host.bridge.progressError(