25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-10 15:47:30 +01:00

mod_push: Also include sender/body for carbons

If the 'include_sender' and/or 'include_body' options are specified,
also include a urn:xmpp:push:summary form in push notifications that are
generated for carbon-copied messages (with a body).
This commit is contained in:
Holger Weiss 2018-06-12 22:47:23 +02:00
parent 4f293751f0
commit 0a9f522222

View File

@ -346,7 +346,7 @@ c2s_stanza(State, #stream_error{}, _SendResult) ->
c2s_stanza(#{push_enabled := true, mgmt_state := pending} = State,
Pkt, _SendResult) ->
?DEBUG("Notifying client of stanza", []),
notify(State, Pkt),
notify(State, xmpp_util:unwrap_carbon(Pkt)),
State;
c2s_stanza(State, _Pkt, _SendResult) ->
State.