1 -- This implements XEP-0313: Message Archive Management |
1 -- This implements XEP-0313: Message Archive Management |
2 -- http://xmpp.org/extensions/xep-0313.html |
2 -- http://xmpp.org/extensions/xep-0313.html |
3 -- (ie not XEP-0136) |
3 -- (ie not XEP-0136) |
4 |
4 |
|
5 local verse = require "verse"; |
5 local xmlns_mam = "urn:xmpp:mam:tmp" |
6 local xmlns_mam = "urn:xmpp:mam:tmp" |
6 local uuid = require "util.uuid".generate; |
7 local uuid = require "util.uuid".generate; |
7 |
8 |
8 function verse.plugins.archive(stream) |
9 function verse.plugins.archive(stream) |
9 function stream:query_archive(where, query_params, callback) |
10 function stream:query_archive(where, query_params, callback) |