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:
parent
3e6acdfb4a
commit
87beae3298
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user