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

When account is deleted, delete also member of stored shared rosters.

This commit is contained in:
Badlop 2010-06-24 00:02:16 +02:00
parent 234280ddc7
commit 71fc696f81

View File

@ -697,6 +697,7 @@ push_user_to_members(User, Server, Subscription) ->
UserGroups = get_user_displayed_groups(LUser, LServer, GroupsOpts), UserGroups = get_user_displayed_groups(LUser, LServer, GroupsOpts),
lists:foreach( lists:foreach(
fun(Group) -> fun(Group) ->
remove_user_from_group(LServer, {LUser, LServer}, Group),
GroupOpts = proplists:get_value(Group, GroupsOpts, []), GroupOpts = proplists:get_value(Group, GroupsOpts, []),
GroupName = proplists:get_value(name, GroupOpts, Group), GroupName = proplists:get_value(name, GroupOpts, Group),
lists:foreach( lists:foreach(