xmpp-parsers: Parse the ibr feature in StreamFeatures
This was surprisingly missing before.
This commit is contained in:
parent
d0062d9931
commit
58ed1592f0
2 changed files with 6 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ pub const XHTML: &str = "http://www.w3.org/1999/xhtml";
|
||||||
|
|
||||||
/// XEP-0077: In-Band Registration
|
/// XEP-0077: In-Band Registration
|
||||||
pub const REGISTER: &str = "jabber:iq:register";
|
pub const REGISTER: &str = "jabber:iq:register";
|
||||||
|
/// XEP-0077: In-Band Registration
|
||||||
|
pub const REGISTER_FEATURE: &str = "http://jabber.org/features/iq-register";
|
||||||
|
|
||||||
/// XEP-0084: User Avatar
|
/// XEP-0084: User Avatar
|
||||||
pub const AVATAR_DATA: &str = "urn:xmpp:avatar:data";
|
pub const AVATAR_DATA: &str = "urn:xmpp:avatar:data";
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,10 @@ pub struct StreamFeatures {
|
||||||
#[xml(child(default))]
|
#[xml(child(default))]
|
||||||
pub stream_management: Option<crate::sm::StreamManagement>,
|
pub stream_management: Option<crate::sm::StreamManagement>,
|
||||||
|
|
||||||
|
/// Stream management feature
|
||||||
|
#[xml(flag(namespace = ns::REGISTER_FEATURE, name = "register"))]
|
||||||
|
pub in_band_registration: bool,
|
||||||
|
|
||||||
/// Other stream features advertised
|
/// Other stream features advertised
|
||||||
///
|
///
|
||||||
/// If some features you use end up here, you may want to contribute
|
/// If some features you use end up here, you may want to contribute
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue