monal-im / Monal

Monal for XMPP (iOS and macOS)
https://monal-im.org
Other
503 stars 104 forks source link

Improve the discovery of room names #1216

Closed lissine0 closed 1 month ago

lissine0 commented 1 month ago

Make the discovery of a room's name more reliable by getting it from the identity element, which MUST be returned by the MUC service, instead of relying on muc#roomconfig_roomname, which MAY be returned.

see https://xmpp.org/extensions/xep-0045.html#disco-roominfo

The room MUST return its identity

A chatroom MAY return more detailed information in its disco#info response using Service Discovery Extensions

any field defined for the muc#roomconfig FORM_TYPE can be included in the extended service discovery fields

tmolitor-stud-tu commented 1 month ago

Good catch, thanks! :)