mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Remove existing role information for users that are kicked from room
This should fix issue reported in #4035
This commit is contained in:
parent
4a53d4cb56
commit
3eecf4ae8a
@ -1832,7 +1832,7 @@ set_role(JID, Role, StateData) ->
|
||||
%% maintain the same role they had *before* they were kicked,
|
||||
%% unless they were banned
|
||||
none when Affiliation /= outcast ->
|
||||
StateData#state.roles;
|
||||
maps:remove(jid:remove_resource(LJID), StateData#state.roles);
|
||||
NewRole ->
|
||||
maps:put(jid:remove_resource(LJID),
|
||||
NewRole,
|
||||
|
Loading…
Reference in New Issue
Block a user