mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix type spec for set_from_to/3
This commit is contained in:
parent
c409ed2f2c
commit
1097d31d63
@ -205,9 +205,9 @@ set_to(#iq{} = IQ, J) -> IQ#iq{to = J};
|
|||||||
set_to(#message{} = Msg, J) -> Msg#message{to = J};
|
set_to(#message{} = Msg, J) -> Msg#message{to = J};
|
||||||
set_to(#presence{} = Pres, J) -> Pres#presence{to = J}.
|
set_to(#presence{} = Pres, J) -> Pres#presence{to = J}.
|
||||||
|
|
||||||
-spec set_from_to(iq(), jid:jid(), jid:jid()) -> iq();
|
-spec set_from_to(iq(), undefined | jid:jid(), undefined | jid:jid()) -> iq();
|
||||||
(message(), jid:jid(), jid:jid()) -> message();
|
(message(), undefined | jid:jid(), undefined | jid:jid()) -> message();
|
||||||
(presence(), jid:jid(), jid:jid()) -> presence().
|
(presence(), undefined | jid:jid(), undefined | jid:jid()) -> presence().
|
||||||
set_from_to(#iq{} = IQ, F, T) -> IQ#iq{from = F, to = T};
|
set_from_to(#iq{} = IQ, F, T) -> IQ#iq{from = F, to = T};
|
||||||
set_from_to(#message{} = Msg, F, T) -> Msg#message{from = F, to = T};
|
set_from_to(#message{} = Msg, F, T) -> Msg#message{from = F, to = T};
|
||||||
set_from_to(#presence{} = Pres, F, T) -> Pres#presence{from = F, to = T}.
|
set_from_to(#presence{} = Pres, F, T) -> Pres#presence{from = F, to = T}.
|
||||||
|
Loading…
Reference in New Issue
Block a user