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:
parent
a07029dcad
commit
5beaf50c67
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user