Software /
code /
prosody-modules
Changeset
2949:39994c6bb314
mod_mam_muc: Advertise mam:1 instead of mam:2 if not using new MUC code [fixes #1118]
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 26 Mar 2018 08:05:22 +0100 |
parents | 2948:7646f565c8ca |
children | 2950:18e6d437003f |
files | mod_mam_muc/mod_mam_muc.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua Sun Mar 25 20:31:33 2018 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Mon Mar 26 08:05:22 2018 +0100 @@ -30,6 +30,10 @@ local new_muc = not rooms; if new_muc then rooms = module:shared"muc/rooms"; +else + -- COMPAT: We don't (currently?) support injecting stanza-id + -- on Prosody 0.10 and prior, which is required by mam:2 + xmlns_mam = "urn:xmpp:mam:1"; end local get_room_from_jid = rawget(mod_muc, "get_room_from_jid") or function (jid)