Prepare to add HTTP API to ping cutom jids
[?]
Dec 9, 2020, 6:26 PM
3RMEABMUIPT6DGE6RU6NI7LJ62AUQYKIVU4SA4ZL2P3L4CSGIKEACDependencies
- [2]
TGO4TIWUFix README - [3]
RNQTHBRIAccept all previous HTTP API - [4]
UL67RM6XRe-implement sending message - [5]
727YJ2SLSend message and presence to MUC
Change contents
- replacement in src/xmpp/xmpp_connection.rs at line 23
/// Send ping request to the server to test connectionPing,/// Send ping request. By default to the server to test connection.Ping {opt_xmpp_to: Option<xmpp_parsers::Jid>,}, - replacement in src/xmpp/xmpp_connection.rs at line 757
if (self.xmpp_processing(&event)) {if self.xmpp_processing(&event) { - replacement in src/xmpp/xmpp_connection.rs at line 877
XmppCommand::Ping => {XmppCommand::Ping { opt_xmpp_to } => { - edit in src/xmpp/xmpp_connection.rs at line 886
opt_xmpp_to, - replacement in src/xmpp/stanzas.rs at line 113
pub fn make_ping(id: &str, from: xmpp_parsers::Jid) -> Element {pub fn make_ping(id: &str, from: xmpp_parsers::Jid, to: Option<xmpp_parsers::Jid>) -> Element { - replacement in src/xmpp/stanzas.rs at line 115
.with_to(Jid::Bare(BareJid::domain(from.clone().domain()))).with_to(to.unwrap_or_else(|| Jid::Bare(BareJid::domain(from.clone().domain())))) - replacement in src/main.rs at line 289
cmd_send.clone().send(XmppCommand::Ping).await;cmd_send.clone().send(XmppCommand::Ping { opt_xmpp_to: None }).await;