26
1
mirror of https://github.com/processone/ejabberd.git synced 2025-01-03 18:02:28 +01:00

mod_carboncopy: Also copy mediated MUC invitations

This commit is contained in:
Holger Weiss 2020-01-13 00:13:54 +01:00
parent 74c01caf08
commit ff193a1a6f

View File

@ -271,7 +271,12 @@ is_chat_message(_) ->
is_received_muc_invite(_Packet, sent) ->
false;
is_received_muc_invite(Packet, received) ->
xmpp:has_subtag(Packet, #x_conference{}).
case xmpp:get_subtag(Packet, #muc_user{}) of
#muc_user{invites = [_|_]} ->
true;
_ ->
xmpp:has_subtag(Packet, #x_conference{})
end.
-spec is_received_muc_pm(jid(), message(), direction()) -> boolean().
is_received_muc_pm(#jid{lresource = <<>>}, _Packet, _Direction) ->