diff mod_csi_battery_saver/mod_csi_battery_saver.lua @ 3980:19c5bfc3a241

mod_csi_battery_saver: Add Jingle incoming call messages to important, thanks to Wiktor Kwapisiewicz <wiktor@metacode.biz>
author tmolitor <thilo@eightysoft.de>
date Sun, 19 Apr 2020 08:15:09 +0200
parents 6b0db0f2d57a
children 64b7daa6c42c
line wrap: on
line diff
--- a/mod_csi_battery_saver/mod_csi_battery_saver.lua	Sun Apr 19 08:12:21 2020 +0200
+++ b/mod_csi_battery_saver/mod_csi_battery_saver.lua	Sun Apr 19 08:15:09 2020 +0200
@@ -97,12 +97,16 @@
 		if carbon then stanza = carbon; end
 
 		local st_type = stanza.attr.type;
+
 		-- headline message are always not important
 		if st_type == "headline" then return false; end
 
 		-- chat markers (XEP-0333) are important, too, because some clients use them to update their notifications
 		if stanza:child_with_ns("urn:xmpp:chat-markers:0") then return true; end;
 
+		-- XEP-0353: Jingle Message Initiation incoming call messages
+		if stanza:child_with_ns("urn:xmpp:jingle-message:0") then return true; end
+
 		-- carbon copied outgoing messages are important (some clients update their notifications upon receiving those) --> don't return false here
 		--if carbon and stanza_direction == "out" then return false; end