Fix muc tests

This commit is contained in:
Paweł Chmielowski 2021-02-17 13:09:29 +01:00
parent 14871c54ac
commit 7da033f733
1 changed files with 2 additions and 3 deletions

View File

@ -939,11 +939,10 @@ process_groupchat_message(#message{from = From, lang = Lang} = Packet, StateData
of
true ->
{FromNick, Role} = get_participant_data(From, StateData),
#config{members_by_default = MBD,
moderated = Moderated} = StateData#state.config,
#config{moderated = Moderated} = StateData#state.config,
AllowedByModerationRules =
case {Role == moderator orelse Role == participant orelse
not Moderated orelse MBD, IsSubscriber} of
not Moderated, IsSubscriber} of
{true, _} -> true;
{_, true} ->
case get_default_role(get_affiliation(From, StateData),