mod_storage_xmlarchive/mod_storage_xmlarchive.lua
changeset 1797 152439ca92ee
parent 1769 1a7867eaac9e
child 1823 1b08597b5e6f
equal deleted inserted replaced
1796:8e19b943c2cd 1797:152439ca92ee
    78 	end
    78 	end
    79 
    79 
    80 	local stream_sess = { notopen = true };
    80 	local stream_sess = { notopen = true };
    81 	local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client"});
    81 	local stream = new_stream(stream_sess, { handlestanza = cb, stream_ns = "jabber:client"});
    82 	local dates = dm.list_load(username, module.host, self.store) or empty;
    82 	local dates = dm.list_load(username, module.host, self.store) or empty;
    83 	stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag());
       
    84 	local function reset_stream()
    83 	local function reset_stream()
    85 		stream:reset();
    84 		stream:reset();
    86 		stream_sess.notopen = true;
    85 		stream_sess.notopen = true;
    87 		stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag());
    86 		stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag());
    88 		stream_sess.notopen = nil;
    87 		stream_sess.notopen = nil;