25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

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

View File

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