Skip to content

Commit

Permalink
Remove existing role information for users that are kicked from room
Browse files Browse the repository at this point in the history
This should fix issue reported in processone#4035
  • Loading branch information
prefiks authored and xela85 committed Aug 19, 2024
1 parent 07304f9 commit 06c9850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod_muc_room.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,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,
Expand Down

0 comments on commit 06c9850

Please sign in to comment.