25
1
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:
Holger Weiss 2014-05-14 01:04:38 +02:00
parent 23fdf0e889
commit 6e8dd5bdff

View File

@ -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]),