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,
|
%% maintain the same role they had *before* they were kicked,
|
||||||
%% unless they were banned
|
%% unless they were banned
|
||||||
none when Affiliation /= outcast ->
|
none when Affiliation /= outcast ->
|
||||||
StateData#state.roles;
|
maps:remove(jid:remove_resource(LJID), StateData#state.roles);
|
||||||
NewRole ->
|
NewRole ->
|
||||||
maps:put(jid:remove_resource(LJID),
|
maps:put(jid:remove_resource(LJID),
|
||||||
NewRole,
|
NewRole,
|
||||||
|
|
Loading…
Reference in New Issue