mam: Bump jid to 0.3.1, to serialise it directly to a text node.

This commit is contained in:
Emmanuel Gil Peyrot 2017-10-31 22:21:27 +00:00
commit 86eb65b829
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ license = "MPL-2.0"
[dependencies] [dependencies]
minidom = "0.6.2" minidom = "0.6.2"
jid = { version = "0.3.0", features = ["minidom"] } jid = { version = "0.3.1", features = ["minidom"] }
base64 = "0.7.0" base64 = "0.7.0"
digest = "0.6.0" digest = "0.6.0"
sha-1 = "0.4.0" sha-1 = "0.4.0"

View file

@ -199,7 +199,7 @@ fn serialise_jid_list(name: &str, jids: Vec<Jid>) -> Option<Element> {
.append(jids.into_iter() .append(jids.into_iter()
.map(|jid| Element::builder("jid") .map(|jid| Element::builder("jid")
.ns(ns::MAM) .ns(ns::MAM)
.append(String::from(jid)) .append(jid)
.build()) .build())
.collect::<Vec<_>>()) .collect::<Vec<_>>())
.build()) .build())