Fix JID format, relevant when contact is in roster and shared roster

This commit is contained in:
Badlop 2011-07-28 16:04:40 +02:00
parent 4fcbd5894e
commit 4f101c318f
1 changed files with 4 additions and 2 deletions

View File

@ -146,9 +146,11 @@ get_user_roster(Items, US) ->
fun(Group, Acc1) ->
GroupName = get_group_name(S, Group),
lists:foldl(
fun(UserServer, Acc2) ->
fun({User, Server} = UserServer, Acc2) ->
if UserServer == US -> Acc2;
true -> dict:append(UserServer,
true ->
UserServerB = {list_to_binary(User), list_to_binary(Server)},
dict:append(UserServerB,
GroupName,
Acc2)
end