26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-30 17:43:57 +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 21d2f4efab
commit fe23dbd76e

View File

@ -655,6 +655,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(