From 4e7aa41e3f8d12bc7bc62405f5fc5256b07900e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Mon, 20 Feb 2023 12:55:31 +0100 Subject: [PATCH] Make subscribers members by default --- src/mod_muc_room.erl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 11f397085..2b9a30e13 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -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,