xmpp: Stop proxying tokio-xmpp event in escape-hatch, add our own variants

This was causing issues with Clone-ing tokio-xmpp Event-s as they
include Error-s which are typically not Clone-able. Event and Stanza
aren't Clone-able either so might as well do our own stuff here.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2025-09-10 12:05:19 +02:00 committed by Link Mauve
commit 03c7310990
3 changed files with 23 additions and 5 deletions

View file

@ -40,7 +40,7 @@ XXXX-YY-ZZ [ RELEASER <admin@localhost> ]
- New 'escape-hatch' feature: Allow sending tokio_xmpp::Stanza directly
instead of having to go through xmpp-rs' API when it's lacking. This
is meant to stay behind a feature. Also allows directly receiving
TokioXmppEvent.
stanzas.
- Added documentation on `Event` enum.
* Fixes:
- Use tokio::sync::RwLock not std::sync::RwLock (!432)