25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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),
lists:foreach(
fun(Group) ->
remove_user_from_group(LServer, {LUser, LServer}, Group),
GroupOpts = proplists:get_value(Group, GroupsOpts, []),
GroupName = proplists:get_value(name, GroupOpts, Group),
lists:foreach(