# HG changeset patch # User Matthew Wild # Date 1614113954 0 # Node ID 6d595857164a17b0ecbd4a3f24517012720a88e3 # Parent 38bd4d5574138dc74470bc4b0a040a62b001463b mod_cloud_notify_encrypted: Advertise support for JMI push notifications diff -r 38bd4d557413 -r 6d595857164a mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua --- a/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Tue Feb 23 16:37:06 2021 +0000 +++ b/mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua Tue Feb 23 20:59:14 2021 +0000 @@ -12,11 +12,13 @@ local xmlns_push = "urn:xmpp:push:0"; local xmlns_push_encrypt = "tigase:push:encrypt:0"; local xmlns_push_encrypt_aes_128_gcm = "tigase:push:encrypt:aes-128-gcm"; +local xmlns_push_jingle = "tigase:push:jingle:0"; -- https://xeps.tigase.net//docs/push-notifications/encrypt/#41-discovering-support local function account_disco_info(event) event.reply:tag("feature", {var=xmlns_push_encrypt}):up(); event.reply:tag("feature", {var=xmlns_push_encrypt_aes_128_gcm}):up(); + event.reply:tag("feature", {var=xmlns_push_jingle}):up(); end module:hook("account-disco-info", account_disco_info);