25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Make subscribers members by default

This commit is contained in:
Paweł Chmielowski 2023-02-20 12:55:31 +01:00
parent d91812730b
commit 4e7aa41e3f

View File

@ -1022,12 +1022,8 @@ process_groupchat_message(#message{from = From, lang = Lang} = Packet, StateData
not Moderated, IsSubscriber} of
{true, _} -> true;
{_, true} ->
case get_default_role(get_affiliation(From, StateData),
StateData) of
moderator -> true;
participant -> true;
_ -> false
end;
% We assume all subscribers are at least members
true;
_ ->
false
end,