Skip to content

Instantly share code, notes, and snippets.

@wiktor-k
Last active April 18, 2020 09:28
Show Gist options
  • Save wiktor-k/44cc5653aaccd7a77818a4e4d9f03949 to your computer and use it in GitHub Desktop.
Save wiktor-k/44cc5653aaccd7a77818a4e4d9f03949 to your computer and use it in GitHub Desktop.
diff -r bbfcd786cc78 mod_csi_battery_saver/mod_csi_battery_saver.lua
--- a/mod_csi_battery_saver/mod_csi_battery_saver.lua Thu Apr 16 17:34:53 2020 +0200
+++ b/mod_csi_battery_saver/mod_csi_battery_saver.lua Sat Apr 18 11:22:07 2020 +0200
@@ -103,6 +103,9 @@
-- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment