Allow subscription

[?]
Feb 18, 2019, 6:09 PM
EXWBVL3ZHAOACZCEIJOE6AFXPAYJRNTWJQDKYSQBEP57OWP2MG2AC

Dependencies

  • [2] 2VZBEEXA Messages fixed
  • [*] FV6BJ5K6 Send self-presence and store account info in Rc so it willbe used in some future in parallel
  • [*] J7VX56FW ToDo
  • [*] VS6AHRWI Move XMPP to separate dir

Change contents

  • edit in src/xmpp/stanzas.rs at line 42
    [5.309]
    [5.309]
    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
    [2.2916]
    [2.2916]
    }
    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()));