Revert "xmpp-parsers: Remove optional child from sm element"

This reverts commit 0a1b291574 once again.

This is currently required to connect to Prosody, otherwise the parser
will choke on the extra undocumented child.

I still wonder if required (4e0cd5d96b)
would be useful to support then, as it might also be found in the wild.
This commit is contained in:
Link Mauve 2025-09-08 11:29:57 +02:00
commit 9d91b02dfd
3 changed files with 12 additions and 4 deletions

View file

@ -109,6 +109,8 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
- JSON Containers (XEP-0335) (!546)
- Verifying HTTP Requests via XMPP (XEP-0070)
* Improvements:
- Add support for undocumented `<optional/> in XEP-0198 feature
advertisment, for compatibility with servers in the wild.
- Add support application-specific error conditions in XEP-0198
- Keep unsupported vCard elements as `minidom::Element`, so that they
get serialized back instead of being dropped. We now also test for