mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Fix dialyzer warning
This commit is contained in:
parent
6da1bb5b22
commit
f6385fae50
1 changed files with 1 additions and 1 deletions
|
@ -1126,7 +1126,7 @@ add_stanza_id(Packet, #state{jid = JID}) ->
|
||||||
GenID = erlang:system_time(microsecond),
|
GenID = erlang:system_time(microsecond),
|
||||||
{true, xmpp:put_meta(Packet, stanza_id, GenID)};
|
{true, xmpp:put_meta(Packet, stanza_id, GenID)};
|
||||||
_ ->
|
_ ->
|
||||||
StanzaIds = xmpp:get_subtags(Packet, #stanza_id{}),
|
StanzaIds = xmpp:get_subtags(Packet, #stanza_id{by = #jid{}}),
|
||||||
HasOurStanzaId = lists:any(
|
HasOurStanzaId = lists:any(
|
||||||
fun(#stanza_id{by = JID2}) when JID == JID2 -> true;
|
fun(#stanza_id{by = JID2}) when JID == JID2 -> true;
|
||||||
(_) -> false
|
(_) -> false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue