25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix spec: xmpp:set_from_to/3 allows undefined as second argument

This commit is contained in:
Badlop 2021-07-13 20:43:44 +02:00
parent a07029dcad
commit 5beaf50c67

View File

@ -4731,7 +4731,7 @@ send_wrapped(From, To, Packet, Node, State) ->
ejabberd_router:route(xmpp:set_from_to(Packet, From, To))
end.
-spec wrap(jid(), jid(), stanza(), binary(), binary()) -> message().
-spec wrap(jid(), undefined | jid(), stanza(), binary(), binary()) -> message().
wrap(From, To, Packet, Node, Id) ->
El = xmpp:set_from_to(Packet, From, To),
#message{