mod_csi_battery_saver/mod_csi_battery_saver.lua
changeset 4973 889e1695e935
parent 4052 64b7daa6c42c
child 5806 f6a2602129c8
equal deleted inserted replaced
4972:487f1eb829cf 4973:889e1695e935
   104 		-- chat markers (XEP-0333) are important, too, because some clients use them to update their notifications
   104 		-- chat markers (XEP-0333) are important, too, because some clients use them to update their notifications
   105 		if stanza:child_with_ns("urn:xmpp:chat-markers:0") then return true; end;
   105 		if stanza:child_with_ns("urn:xmpp:chat-markers:0") then return true; end;
   106 
   106 
   107 		-- XEP-0353: Jingle Message Initiation incoming call messages
   107 		-- XEP-0353: Jingle Message Initiation incoming call messages
   108 		if stanza:child_with_ns("urn:xmpp:jingle-message:0") then return true; end
   108 		if stanza:child_with_ns("urn:xmpp:jingle-message:0") then return true; end
       
   109 		if stanza:child_with_ns("urn:xmpp:jingle-message:1") then return true; end
   109 
   110 
   110 		-- carbon copied outgoing messages are important (some clients update their notifications upon receiving those) --> don't return false here
   111 		-- carbon copied outgoing messages are important (some clients update their notifications upon receiving those) --> don't return false here
   111 		--if carbon and stanza_direction == "out" then return false; end
   112 		--if carbon and stanza_direction == "out" then return false; end
   112 
   113 
   113 		-- We can't check for body contents in encrypted messages, so let's treat them as important
   114 		-- We can't check for body contents in encrypted messages, so let's treat them as important