From 260c289d34acbb32fc607d8f1f0bca4dfc5e020d Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 18 Mar 2020 12:02:16 +0100 Subject: [PATCH] Fix Dialyzer warning that jid can't be 'undefined' --- src/mod_carboncopy.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_carboncopy.erl b/src/mod_carboncopy.erl index d62a13336..57d4d75a8 100644 --- a/src/mod_carboncopy.erl +++ b/src/mod_carboncopy.erl @@ -268,7 +268,7 @@ is_received_muc_invite(Msg, received) -> #muc_user{invites = [_|_]} -> true; _ -> - xmpp:has_subtag(Msg, #x_conference{}) + xmpp:has_subtag(Msg, #x_conference{jid = jid:make(<<"">>)}) end. -spec is_received_muc_pm(jid(), message(), direction()) -> boolean().