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
1 changed files with 1 additions and 1 deletions

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.