25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Run user_receive_packet also when sending offline messages to client (thanks to Brian Acton)(EJAB-1193)

This commit is contained in:
Badlop 2010-02-22 22:48:13 +01:00
parent 3e6acdfb4a
commit 87beae3298

View File

@ -1969,8 +1969,12 @@ resend_offline_messages(#state{user = UserB,
Packet#xmlel.attrs, From), Packet#xmlel.attrs, From),
Attrs2 = exmpp_stanza:set_recipient_in_attrs( Attrs2 = exmpp_stanza:set_recipient_in_attrs(
Attrs1, To), Attrs1, To),
send_element(StateData, FixedPacket = Packet#xmlel{attrs = Attrs2},
Packet#xmlel{attrs = Attrs2}); send_element(StateData, FixedPacket),
ejabberd_hooks:run(user_receive_packet,
StateData#state.server,
[StateData#state.jid,
From, To, FixedPacket]);
true -> true ->
ok ok
end end