Diff

mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2675:101a2a0b8b33

mod_storage_xmlarchive: Pass username to dates
author Kim Alvefur <zash@zash.se>
date Mon, 10 Apr 2017 08:59:13 +0200
parent 2663:6e8c3fc48237
child 2676:1b081c8fc1d9
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Fri Apr 07 23:34:40 2017 +0200
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon Apr 10 08:59:13 2017 +0200
@@ -91,7 +91,7 @@
 	local stream_session = { notopen = true };
 	local stream_callbacks = { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" };
 	local stream = new_stream(stream_session, stream_callbacks);
-	local dates = self:dates() or empty;
+	local dates = self:dates(username) or empty;
 	local function reset_stream()
 		stream:reset();
 		stream_session.notopen = true;