diff options
author | Kim Alvefur <zash@zash.se> | 2021-01-12 19:25:29 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-01-12 19:25:29 +0100 |
commit | ec6a96d0b08c2202c474842c61cc827443779486 (patch) | |
tree | 21a8bf3b234c36cea6b7a95b431604e45117ae9e /plugins/mod_mam | |
parent | a481f7b6ead61f0072fae1ae8af418e8043d561b (diff) | |
download | prosody-ec6a96d0b08c2202c474842c61cc827443779486.tar.gz prosody-ec6a96d0b08c2202c474842c61cc827443779486.zip |
mod_mam: Advertise extended MAM when archive storage is capable
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |