comparison mod_csi_battery_saver/mod_csi_battery_saver.lua @ 4969:889e1695e935

mod_csi_battery_saver: Add support for urn:xmpp:jingle-message:1 (XEP-0353)
author tmolitor <thilo@eightysoft.de>
date Sat, 02 Jul 2022 02:30:06 +0200
parents 64b7daa6c42c
children f6a2602129c8
comparison
equal deleted inserted replaced
4968:487f1eb829cf 4969: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