aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 21:08:11 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 21:08:11 +0100
commit9251fa5500802ec09344ac93d47636c2a9601c45 (patch)
tree9fe1344943cb6e0e200bf255f0ba35cc25f45e7d /plugins/mod_csi_simple.lua
parent38c98346b185543fa9f79ab6120f997368662538 (diff)
downloadprosody-9251fa5500802ec09344ac93d47636c2a9601c45.tar.gz
prosody-9251fa5500802ec09344ac93d47636c2a9601c45.zip
mod_csi_simple: Consider messages forwarded from another of the users clients as important (fixes part of #1250)
Diffstat (limited to 'plugins/mod_csi_simple.lua')
-rw-r--r--plugins/mod_csi_simple.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua
index 51644515..3f0560ca 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -63,6 +63,9 @@ module:hook("csi-is-stanza-important", function (event)
if st_type == "headline" then
return false;
end
+ if stanza:get_child("sent", "urn:xmpp:carbons:2") then
+ return true;
+ end
if stanza:get_child("body") then
return true;
end