# HG changeset patch # User Kim Alvefur # Date 1587231386 -7200 # Node ID 89e0f5cb60a10269740f783c1593796f41c9110f # Parent f5d88ad24b306907d9057f5253843b7ac87d58b3 mod_csi_simple: Consider MUC invites important Both mediated invites defined by XEP-0045: Multi-User Chat and direct invites defined by XEP-0249: Direct MUC Invitations diff -r f5d88ad24b30 -r 89e0f5cb60a1 doc/doap.xml --- a/doc/doap.xml Mon Apr 20 18:33:05 2020 +0200 +++ b/doc/doap.xml Sat Apr 18 19:36:26 2020 +0200 @@ -431,6 +431,14 @@ + + 1.2 + 0.12 + mod_csi_simple + + + + 0.12.1 complete diff -r f5d88ad24b30 -r 89e0f5cb60a1 plugins/mod_csi_simple.lua --- a/plugins/mod_csi_simple.lua Mon Apr 20 18:33:05 2020 +0200 +++ b/plugins/mod_csi_simple.lua Sat Apr 18 19:36:26 2020 +0200 @@ -48,6 +48,9 @@ if stanza:get_child("encryption", "urn:xmpp:eme:0") then return true; end + if stanza:get_child("x", "jabber:x:conference") or stanza:find("{http://jabber.org/protocol/muc#user}x/invite") then + return true; + end for important in important_payloads do if stanza:find(important) then return true;