Allow subscription
[?]
Feb 18, 2019, 6:09 PM
EXWBVL3ZHAOACZCEIJOE6AFXPAYJRNTWJQDKYSQBEP57OWP2MG2ACDependencies
- [2]
2VZBEEXAMessages fixed - [*]
FV6BJ5K6Send self-presence and store account info in Rc so it willbe used in some future in parallel - [*]
J7VX56FWToDo - [*]
VS6AHRWIMove XMPP to separate dir
Change contents
- edit in src/xmpp/stanzas.rs at line 42
presence.to = Some(jid);presence.into()}pub fn make_allow_subscribe(jid: xmpp_parsers::Jid) -> Element {let mut presence = Presence::new(PresenceType::Subscribed); - edit in src/xmpp/mod.rs at line 571
}let sub_from = match rdata.0 {xmpp_parsers::roster::Subscription::From => true,xmpp_parsers::roster::Subscription::Both => true,_ => false,};if !sub_from {info!("Not subscription from {}", xmpp_to);self.state.data.send_queue.push_back(stanzas::make_allow_subscribe(xmpp_to.clone()));