diff --git a/debian/patches/0001-mod_mam_disco.path b/debian/patches/0001-mod_mam_disco.path new file mode 100644 index 0000000..2a686cc --- /dev/null +++ b/debian/patches/0001-mod_mam_disco.path @@ -0,0 +1,54 @@ +From: Victor Seva +Date: Fri, 7 Apr 2017 11:12:23 +0200 +Subject: TT#14278 mam: add all supported versions to disco + +* sipwise app needs 'urn:xmpp:mam:1' at disco result +* upstream did implement supporting urn:xmpp_mam:[0-2] slightly different + looking through the code y noticed that if the disco has no 'to' it shows + the versions of mam supported + + + + + + + + + + + + + + + + + + + That is not what the XEP 0313 says: + + 7. Determining support + If a server or other entity hosts archives and supports MAM queries, it MUST + advertise the 'urn:xmpp:mam:2' feature in response to Service Discovery + (XEP-0030) [15] requests made to archiving JIDs + (i.e. JIDs hosting an archive, such as users' bare JIDs): + + +Change-Id: Ib79b6f2f60f71a80030bbd12b2eb893b60ac025d +--- + plugins/mod_mam/mod_mam.lua | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua +index a4aa014..6d1a658 100644 +--- a/plugins/mod_mam/mod_mam.lua ++++ b/plugins/mod_mam/mod_mam.lua +@@ -393,6 +393,8 @@ module:hook("message/bare", message_handler, 2); + module:hook("message/full", message_handler, 2); + + module:add_feature(xmlns_mam0); -- COMPAT with XEP-0313 v 0.1 ++module:add_feature(xmlns_mam1); -- COMPAT with XEP-0313 v 0.5 ++module:add_feature(xmlns_mam2); -- COMPAT with XEP-0313 v 0.6 + + module:hook("account-disco-info", function(event) + (event.reply or event.stanza):tag("feature", {var=xmlns_mam0}):up(); diff --git a/debian/patches/series b/debian/patches/series index 1759217..dba2c33 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,5 @@ mod_auth_sql.path +0001-mod_mam_disco.path 0002-TT-8297-mam-implement-archive-to-DB.patch 0003-TT-9303-mod_mam-sipwise_archive.lib-fix-crash-at-fin.patch 0004-TT-9311-mod_mam-sipwise_archive.lib-full-username.patch