From be492e057b00c0f21e54b8e8d881ee2314f8534f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 12 Jan 2021 19:25:29 +0100 Subject: mod_mam: Advertise extended MAM when archive storage is capable --- plugins/mod_mam/mod_mam.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/mod_mam/mod_mam.lua') diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index 38ef35f6..b5e756e3 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -567,8 +567,7 @@ module:hook("pre-message/full", c2s_message_handler, 0); 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(); -- cgit v1.2.3