Software /
code /
prosody
Changeset
9769:150e9574c149 0.11
mod_csi_simple: Unpack Carbons-forwarded messages (fixes part of #1250)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Jan 2019 21:09:50 +0100 |
parents | 9768:ab12fd48e124 |
children | 9770:76cb409db537 |
files | plugins/mod_csi_simple.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sun Jan 06 21:08:11 2019 +0100 +++ b/plugins/mod_csi_simple.lua Sun Jan 06 21:09:50 2019 +0100 @@ -66,6 +66,10 @@ if stanza:get_child("sent", "urn:xmpp:carbons:2") then return true; end + local forwarded = stanza:find("{urn:xmpp:carbons:2}received/{urn:xmpp:forward:0}/{jabber:client}message"); + if forwarded then + stanza = forwarded; + end if stanza:get_child("body") then return true; end