mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Don't miss incoming presence updates
This commit is contained in:
parent
23fdf0e889
commit
6e8dd5bdff
@ -1663,7 +1663,7 @@ handle_info({route, From, To,
|
|||||||
jlib:replace_from_to_attrs(jlib:jid_to_string(From),
|
jlib:replace_from_to_attrs(jlib:jid_to_string(From),
|
||||||
jlib:jid_to_string(To), NewAttrs),
|
jlib:jid_to_string(To), NewAttrs),
|
||||||
FixedPacket = #xmlel{name = Name, attrs = Attrs2, children = Els},
|
FixedPacket = #xmlel{name = Name, attrs = Attrs2, children = Els},
|
||||||
SentStateData = send_stanza(StateData, FixedPacket),
|
SentStateData = send_stanza(NewState, FixedPacket),
|
||||||
ejabberd_hooks:run(user_receive_packet,
|
ejabberd_hooks:run(user_receive_packet,
|
||||||
SentStateData#state.server,
|
SentStateData#state.server,
|
||||||
[SentStateData#state.jid, From, To, FixedPacket]),
|
[SentStateData#state.jid, From, To, FixedPacket]),
|
||||||
|
Loading…
Reference in New Issue
Block a user