Changeset

4467:6d595857164a

mod_cloud_notify_encrypted: Advertise support for JMI push notifications
author Matthew Wild <mwild1@gmail.com>
date Tue, 23 Feb 2021 20:59:14 +0000
parents 4466:38bd4d557413
children 4468:5d8f9cc5c6fb
files mod_cloud_notify_encrypted/mod_cloud_notify_encrypted.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);