mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
mod_mam: Advertise extended MAM when archive storage is capable
This commit is contained in:
parent
2d03793897
commit
be492e057b
2 changed files with 2 additions and 3 deletions
|
@ -569,7 +569,7 @@
|
|||
<xmpp:SupportedXep>
|
||||
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0313.html"/>
|
||||
<xmpp:version>0.7.2</xmpp:version>
|
||||
<xmpp:status>partial</xmpp:status>
|
||||
<xmpp:status>complete</xmpp:status>
|
||||
<xmpp:since>0.10.0</xmpp:since>
|
||||
<xmpp:note>mod_mam, mod_muc_mam</xmpp:note>
|
||||
</xmpp:SupportedXep>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue