mod_csi_simple: Consider messages encrypted payload as important (fixes part of #1250) 0.11
authorKim Alvefur <zash@zash.se>
Sun, 06 Jan 2019 21:09:32 +0100
branch0.11
changeset 9775 bf92f37de137
parent 9774 76cb409db537
child 9776 7934e2c6b030
child 9778 4f8b6c09e5f3
mod_csi_simple: Consider messages encrypted payload as important (fixes part of #1250)
plugins/mod_csi_simple.lua
--- a/plugins/mod_csi_simple.lua	Sun Jan 06 21:09:00 2019 +0100
+++ b/plugins/mod_csi_simple.lua	Sun Jan 06 21:09:32 2019 +0100
@@ -76,6 +76,9 @@
 		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;