summaryrefslogtreecommitdiff
path: root/src/mod_push.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2018-06-12 22:47:23 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2018-06-12 22:47:23 +0200
commit0a9f52222281b73d5a383a42e1b20079bf545aa4 (patch)
treec9f3497186c3d86a3fd800cb08a4bab09cb3e003 /src/mod_push.erl
parentUpdate mix deps (diff)
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).
Diffstat (limited to 'src/mod_push.erl')
-rw-r--r--src/mod_push.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_push.erl b/src/mod_push.erl
index 077556ff..eb06e41b 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.