Mercurial > prosody-modules
comparison 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 |
comparison
equal
deleted
inserted
replaced
4463:8b8246031a5e | 4464:ea820de69265 |
---|---|
279 if stanza:get_child("x", "jabber:x:encrypted") then return true; end | 279 if stanza:get_child("x", "jabber:x:encrypted") then return true; end |
280 | 280 |
281 -- check xep373 pgp (OX) https://xmpp.org/extensions/xep-0373.html | 281 -- check xep373 pgp (OX) https://xmpp.org/extensions/xep-0373.html |
282 if stanza:get_child("openpgp", "urn:xmpp:openpgp:0") then return true; end | 282 if stanza:get_child("openpgp", "urn:xmpp:openpgp:0") then return true; end |
283 | 283 |
284 -- XEP-0353: Jingle Message Initiation (incoming call request) | |
285 if stanza:get_child("propose", "urn:xmpp:jingle-message:0") then return true; end | |
286 | |
284 local body = stanza:get_child_text("body"); | 287 local body = stanza:get_child_text("body"); |
285 | 288 |
286 -- groupchat subjects are not important here | 289 -- groupchat subjects are not important here |
287 if st_type == "groupchat" and stanza:get_child_text("subject") then | 290 if st_type == "groupchat" and stanza:get_child_text("subject") then |
288 return false; | 291 return false; |