aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 21:09:50 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 21:09:50 +0100
commit0ba013d818fe8b6b8f1e5688eaefdb23880f7f02 (patch)
tree70c9af814b8200961b8343aff46c743c2e961d34 /plugins/mod_csi_simple.lua
parent5933fcf383b2bd41ab005195ce3908a1695f2ee3 (diff)
downloadprosody-0ba013d818fe8b6b8f1e5688eaefdb23880f7f02.tar.gz
prosody-0ba013d818fe8b6b8f1e5688eaefdb23880f7f02.zip
mod_csi_simple: Unpack Carbons-forwarded messages (fixes part of #1250)
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r--plugins/mod_csi_simple.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index 3f0560ca..cf03ef48 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -66,6 +66,10 @@ module:hook("csi-is-stanza-important", function (event)
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