echo_component: TODO

This commit is contained in:
Astro 2017-07-23 02:47:07 +02:00
parent 993fdcab8f
commit a204e66709

View file

@ -56,6 +56,7 @@ fn main() {
if event.is_online() { if event.is_online() {
println!("Online!"); println!("Online!");
// TODO: replace these hardcoded JIDs
let presence = make_presence(Jid::from_str("test@component.linkmauve.fr/coucou").unwrap(), Jid::from_str("linkmauve@linkmauve.fr").unwrap()); let presence = make_presence(Jid::from_str("test@component.linkmauve.fr/coucou").unwrap(), Jid::from_str("linkmauve@linkmauve.fr").unwrap());
send(presence); send(presence);
} else if let Some(message) = event.into_stanza() } else if let Some(message) = event.into_stanza()