xmpp-parsers: Fix jingle thumbnails wrt the XEP changes

Version 0.4.2 added a restriction on width and height to be in the
0..65535 range.  The media-type attribute has always been optional as
well.
This commit is contained in:
Emmanuel Gil Peyrot 2024-07-24 22:41:13 +02:00
commit 7fca02958b
3 changed files with 30 additions and 14 deletions

View file

@ -24,7 +24,9 @@ XXXX-YY-ZZ RELEASER <admin@example.com>
nothing so far uses it for anything but this message. We can always
change it again once any other specification allows e.g. presences or
iqs.
- Module `jingle_thumnails` renamed to `jingle_thumbnails`.
- Module `jingle_thumnails` has been renamed to `jingle_thumbnails`. It
now respect the latest version of the XEP, with the width and height
being limited to 0..65535 and the media-type being optional (!475).
- The bookmarks2 Conference `extensions` child is now an
`Option<Extensions>` instead of a `Vec<Element>`, to distinguish
between it being absent or empty (!472).