mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Move get_group_name outside the loop (thanks to mikekaganski)
SVN Revision: 2761
This commit is contained in:
parent
b989297725
commit
71cd4917d8
@ -127,11 +127,12 @@ get_user_roster(Items, US) ->
|
|||||||
SRUsers =
|
SRUsers =
|
||||||
lists:foldl(
|
lists:foldl(
|
||||||
fun(Group, Acc1) ->
|
fun(Group, Acc1) ->
|
||||||
|
GroupName = get_group_name(S, Group),
|
||||||
lists:foldl(
|
lists:foldl(
|
||||||
fun(User, Acc2) ->
|
fun(User, Acc2) ->
|
||||||
if User == US -> Acc2;
|
if User == US -> Acc2;
|
||||||
true -> dict:append(User,
|
true -> dict:append(User,
|
||||||
get_group_name(S, Group),
|
GroupName,
|
||||||
Acc2)
|
Acc2)
|
||||||
end
|
end
|
||||||
end, Acc1, get_group_users(S, Group))
|
end, Acc1, get_group_users(S, Group))
|
||||||
|
Loading…
Reference in New Issue
Block a user