]> granicus.if.org Git - ejabberd/commitdiff
Remove workaround, as now the correct #roster format is received
authorBadlop <badlop@process-one.net>
Mon, 10 Oct 2011 15:15:04 +0000 (17:15 +0200)
committerBadlop <badlop@process-one.net>
Mon, 10 Oct 2011 15:15:16 +0000 (17:15 +0200)
src/mod_shared_roster.erl

index 5a90dc476156dfacb619e5461e36cf2363942e0f..50b4472c053465ab8d2344a3990eaeccbeee044b 100644 (file)
@@ -175,9 +175,9 @@ get_user_roster(Items, US) ->
 
     %% Export items in roster format:
     ModVcard = get_vcard_module(S),
-    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},
+    SRItems = [ #roster{usj = {U, S, {U1, S1, undefined}},
+                      us = {U, S},
+                      jid = {U1, S1, undefined},
                       name = get_rosteritem_name(ModVcard, U1, S1),
                       subscription = both,
                       ask = none,