# HG changeset patch # User Kim Alvefur # Date 1610475929 -3600 # Node ID 142fb655b8855bfb836f791f909d9567ac0379de # Parent e35e98541ca0763c743b02763dd463806295d6b5 mod_mam: Advertise extended MAM when archive storage is capable diff -r e35e98541ca0 -r 142fb655b885 doc/doap.xml --- a/doc/doap.xml Tue Jan 12 19:00:44 2021 +0100 +++ b/doc/doap.xml Tue Jan 12 19:25:29 2021 +0100 @@ -569,7 +569,7 @@ 0.7.2 - partial + complete 0.10.0 mod_mam, mod_muc_mam diff -r e35e98541ca0 -r 142fb655b885 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Tue Jan 12 19:00:44 2021 +0100 +++ b/plugins/mod_mam/mod_mam.lua Tue Jan 12 19:25:29 2021 +0100 @@ -567,8 +567,7 @@ module:hook("message/bare", message_handler, 0); module:hook("message/full", message_handler, 0); -local advertise_extended = module:get_option_boolean("mam_advertise_extend", false); --- TODO delete feature flag option +local advertise_extended = archive.caps and archive.caps.full_id_range and archive.caps.ids; module:hook("account-disco-info", function(event) (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up();