From 0a9f52222281b73d5a383a42e1b20079bf545aa4 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 12 Jun 2018 22:47:23 +0200 Subject: [PATCH] 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). --- src/mod_push.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_push.erl b/src/mod_push.erl index 077556ffd..eb06e41b0 100644 --- a/src/mod_push.erl +++ b/src/mod_push.erl @@ -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.