From 846148d618082bf3d20d7616dfeeffdd37de3e1d Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 28 Apr 2017 23:46:32 +0100 Subject: [PATCH] ibb: Fix serialisation of data. --- src/ibb.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ibb.rs b/src/ibb.rs index 6281d140..7152d722 100644 --- a/src/ibb.rs +++ b/src/ibb.rs @@ -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 } => {