Fix Dialyzer warning that jid can't be 'undefined'

This commit is contained in:
Badlop 2020-03-18 12:02:16 +01:00
parent d8899ca9ac
commit 260c289d34
1 changed files with 1 additions and 1 deletions

View File

@ -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().