Add items to roster from iq of "set" type

[?]
Jan 1, 2019, 4:03 PM
3ADA5BBX67XBHVOXAFIGKYKTBSABS65O7O4JQW3K4VAV6MQAYPSAC

Dependencies

  • [2] SU4DNVCB Start to processing roster data
  • [3] 5IKA4GO7 Rename xmpp client field from "inner" to "client"
  • [4] BWDUANCV Second part of processing result is only about stop_future
  • [5] EBETRYK7 Add counter for id. Check for jid in roster
  • [*] VS6AHRWI Move XMPP to separate dir

Change contents

  • replacement in src/xmpp/mod.rs at line 125
    [3.783][3.783:797]()
    self,
    [3.783]
    [3.797]
    mut self,
  • replacement in src/xmpp/mod.rs at line 134
    [2.548][2.548:641]()
    if let Some(_iq) = stanza.try_into().ok() as Option<xmpp_parsers::iq::Iq> {}
    [2.548]
    [2.641]
    if let Some(iq) = stanza.try_into().ok() as Option<xmpp_parsers::iq::Iq> {
    if let xmpp_parsers::iq::IqType::Set(element) = iq.payload {
    if let Some(roster) =
    element.try_into().ok() as Option<xmpp_parsers::roster::Roster>
    {
    self.state
    .data
    .roster
    .extend(roster.items.into_iter().map(|i| (i.jid, ())));
    }
    }
    }