Mercurial > prosody-modules
comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2183:13a8bbf256dd
mod_storage_xmlarchive: Pass a default namespace to xmppstream so result items default to xmlns = nil (fixes non-mam use, like mod_mam_muc sending history)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 27 May 2016 18:25:17 +0200 |
parents | b7c528027762 |
children | b34f4591366a |
comparison
equal
deleted
inserted
replaced
2182:5df3b646c9ad | 2183:13a8bbf256dd |
---|---|
59 end | 59 end |
60 result = stanza; | 60 result = stanza; |
61 end | 61 end |
62 | 62 |
63 local stream_sess = { notopen = true }; | 63 local stream_sess = { notopen = true }; |
64 local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client"}); | 64 local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" }); |
65 local dates = dm.list_load(username, module.host, self.store) or empty; | 65 local dates = dm.list_load(username, module.host, self.store) or empty; |
66 local function reset_stream() | 66 local function reset_stream() |
67 stream:reset(); | 67 stream:reset(); |
68 stream_sess.notopen = true; | 68 stream_sess.notopen = true; |
69 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); | 69 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); |