Mercurial > prosody-modules
diff mod_cloud_notify/mod_cloud_notify.lua @ 4464:ea820de69265
mod_cloud_notify: Consider incoming XEP-0353 call requests as important
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 23 Feb 2021 15:23:29 +0000 |
parents | 157fa4e535b0 |
children | 4157773ed4d3 |
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua Tue Feb 23 03:22:33 2021 +0100 +++ b/mod_cloud_notify/mod_cloud_notify.lua Tue Feb 23 15:23:29 2021 +0000 @@ -281,6 +281,9 @@ -- check xep373 pgp (OX) https://xmpp.org/extensions/xep-0373.html if stanza:get_child("openpgp", "urn:xmpp:openpgp:0") then return true; end + -- XEP-0353: Jingle Message Initiation (incoming call request) + if stanza:get_child("propose", "urn:xmpp:jingle-message:0") then return true; end + local body = stanza:get_child_text("body"); -- groupchat subjects are not important here