From 92887e96bd4f4c76779a77959e5f10888fd405e7 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 28 Jul 2011 16:58:40 +0200 Subject: [PATCH] Return #roster elements in the expected format --- src/mod_shared_roster.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_shared_roster.erl b/src/mod_shared_roster.erl index c0184b020..15f2036fb 100644 --- a/src/mod_shared_roster.erl +++ b/src/mod_shared_roster.erl @@ -175,9 +175,9 @@ get_user_roster(Items, US) -> %% Export items in roster format: ModVcard = get_vcard_module(S), - SRItems = [#roster{usj = {U, S, {U1, S1, undefined}}, - us = US, - jid = {U1, S1, undefined}, + SRItems = [#roster{usj = {list_to_binary(U), list_to_binary(S), {list_to_binary(U1), list_to_binary(S1), undefined}}, + us = {list_to_binary(U), list_to_binary(S)}, + jid = {list_to_binary(U1), list_to_binary(S1), undefined}, name = get_rosteritem_name(ModVcard, U1, S1), subscription = both, ask = none,