# HG changeset patch # User Matthew Wild # Date 1522047922 -3600 # Node ID 39994c6bb3148c78eba43f8d1156d42431e47a0b # Parent 7646f565c8ca5f88dfbbd3e6960b61f3cf8d7c89 mod_mam_muc: Advertise mam:1 instead of mam:2 if not using new MUC code [fixes #1118] diff -r 7646f565c8ca -r 39994c6bb314 mod_mam_muc/mod_mam_muc.lua --- 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)