# HG changeset patch # User Jonas Schäfer # Date 1715242406 -7200 # Node ID 8ff308fad9fd0ab12a8c5f141818d0c410be201d # Parent 9ed02a4f6ff419c6f5732548941db6b0fa686b2a mod_mam_archive: remove invalid disco#info feature The feature which was previously added to disco#info was in fact specified to be used for stream features only (see XEP-0136 section 11). Emitting it in disco#info is weird at best and breaks stuff at worst. diff -r 9ed02a4f6ff4 -r 8ff308fad9fd mod_mam_archive/mod_mam_archive.lua --- a/mod_mam_archive/mod_mam_archive.lua Wed May 08 12:48:41 2024 +0100 +++ b/mod_mam_archive/mod_mam_archive.lua Thu May 09 10:13:26 2024 +0200 @@ -20,12 +20,6 @@ local resolve_relative_path = require "core.configmanager".resolve_relative_path; -- Feature discovery -local xmlns_archive = "urn:xmpp:archive" -local feature_archive = st.stanza("feature", {xmlns=xmlns_archive}):tag("optional"); -if(global_default_policy) then - feature_archive:tag("default"); -end -module:add_extension(feature_archive); module:add_feature("urn:xmpp:archive:auto"); module:add_feature("urn:xmpp:archive:manage"); module:add_feature("urn:xmpp:archive:pref");