mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix JID format, relevant when contact is in roster and shared roster
This commit is contained in:
parent
4fcbd5894e
commit
4f101c318f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user