Mercurial > prosody-modules
comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 1831:004d3bfc05ea
mod_storage_xmlarchive: Expose method for getting a list of dates which do have messages
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 07 Sep 2015 16:26:52 +0200 |
parents | 1b08597b5e6f |
children | e63dba236a2a |
comparison
equal
deleted
inserted
replaced
1830:a45f2f79e99b | 1831:004d3bfc05ea |
---|---|
216 end | 216 end |
217 end | 217 end |
218 return true; | 218 return true; |
219 end | 219 end |
220 | 220 |
221 function archive:dates(username) | |
222 return dm.list_load(username, module.host, self.store); | |
223 end | |
224 | |
221 local provider = {}; | 225 local provider = {}; |
222 function provider:open(store, typ) | 226 function provider:open(store, typ) |
223 if typ ~= "archive" then return nil, "unsupported-store"; end | 227 if typ ~= "archive" then return nil, "unsupported-store"; end |
224 return setmetatable({ store = store }, archive_mt); | 228 return setmetatable({ store = store }, archive_mt); |
225 end | 229 end |