prevent the presence plugin from generating an illegal show element
This commit is contained in:
parent
406dfdea98
commit
ca882fd13a
1 changed files with 4 additions and 4 deletions
|
@ -81,13 +81,13 @@ impl PresencePlugin {
|
|||
.build();
|
||||
stanza.append_child(elem);
|
||||
}
|
||||
if show != Show::Available {
|
||||
let mut elem = Element::builder("show")
|
||||
.ns(ns::CLIENT)
|
||||
.build();
|
||||
if show != Show::Available {
|
||||
elem.append_text_node(show.to_string());
|
||||
}
|
||||
stanza.append_child(elem);
|
||||
}
|
||||
self.proxy.send(stanza);
|
||||
}
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue