diff mod_mam_muc/mod_mam_muc.lua @ 2957:0f813e22e3fa

Merge commit
author JC Brand <jc@opkode.com>
date Tue, 27 Mar 2018 10:51:25 +0200
parents 39994c6bb314
children f7ebf8fcd602
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Tue Mar 27 10:48:04 2018 +0200
+++ b/mod_mam_muc/mod_mam_muc.lua	Tue Mar 27 10:51:25 2018 +0200
@@ -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)