aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_csi_simple.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-06 21:09:32 +0100
committerKim Alvefur <zash@zash.se>2019-01-06 21:09:32 +0100
commit24c44a4566cca3fefd978a6668d20f750a813a8a (patch)
tree97b270a47a5e65bc616c6834159b929e40093f6e /plugins/mod_csi_simple.lua
parente03098631f29c17d0ae3eb217d90cae1219f45ef (diff)
downloadprosody-24c44a4566cca3fefd978a6668d20f750a813a8a.tar.gz
prosody-24c44a4566cca3fefd978a6668d20f750a813a8a.zip
mod_csi_simple: Consider messages encrypted payload 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 da6f4913..da2dd953 100644
--- a/plugins/mod_csi_simple.lua
+++ b/plugins/mod_csi_simple.lua
@@ -76,6 +76,9 @@ module:hook("csi-is-stanza-important", function (event)
if stanza:get_child("subject") then
return true;
end
+ if stanza:get_child("encryption", "urn:xmpp:eme:0") then
+ return true;
+ end
return false;
end
return true;