Software /
code /
prosody-modules
Changeset
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 | 1830:a45f2f79e99b |
children | 1832:48125f2c358b |
files | mod_storage_xmlarchive/mod_storage_xmlarchive.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Sat Sep 05 23:08:40 2015 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Sep 07 16:26:52 2015 +0200 @@ -218,6 +218,10 @@ return true; end +function archive:dates(username) + return dm.list_load(username, module.host, self.store); +end + local provider = {}; function provider:open(store, typ) if typ ~= "archive" then return nil, "unsupported-store"; end