ibb: Fix serialisation of <data/> data.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-28 23:46:32 +01:00
parent 5e4ba2701b
commit 846148d618

View file

@ -120,7 +120,7 @@ pub fn serialise(ibb: &IBB) -> Element {
.ns(ns::IBB)
.attr("seq", format!("{}", seq))
.attr("sid", sid.to_owned())
.attr("data", base64::encode(&data))
.append(base64::encode(&data))
.build()
},
IBB::Close { ref sid } => {