mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Return #roster elements in the expected format
This commit is contained in:
parent
4f101c318f
commit
92887e96bd
@ -175,9 +175,9 @@ get_user_roster(Items, US) ->
|
|||||||
|
|
||||||
%% Export items in roster format:
|
%% Export items in roster format:
|
||||||
ModVcard = get_vcard_module(S),
|
ModVcard = get_vcard_module(S),
|
||||||
SRItems = [#roster{usj = {U, S, {U1, S1, undefined}},
|
SRItems = [#roster{usj = {list_to_binary(U), list_to_binary(S), {list_to_binary(U1), list_to_binary(S1), undefined}},
|
||||||
us = US,
|
us = {list_to_binary(U), list_to_binary(S)},
|
||||||
jid = {U1, S1, undefined},
|
jid = {list_to_binary(U1), list_to_binary(S1), undefined},
|
||||||
name = get_rosteritem_name(ModVcard, U1, S1),
|
name = get_rosteritem_name(ModVcard, U1, S1),
|
||||||
subscription = both,
|
subscription = both,
|
||||||
ask = none,
|
ask = none,
|
||||||
|
Loading…
Reference in New Issue
Block a user