Respond to MAM requests on a channel JID
At the moment, result-set-management is not implemented, the whole history (well, at most 1024 messages) is returned.
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
namespace db
|
||||
{
|
||||
class MucLogLine;
|
||||
}
|
||||
struct ListElement;
|
||||
|
||||
/**
|
||||
@@ -82,6 +86,12 @@ public:
|
||||
void handle_message(const Stanza& stanza);
|
||||
void handle_iq(const Stanza& stanza);
|
||||
|
||||
#ifdef USE_DATABASE
|
||||
bool handle_mam_request(const Stanza& stanza);
|
||||
void send_archived_message(const db::MucLogLine& log_line, const std::string& from, const std::string& to,
|
||||
const std::string& queryid);
|
||||
#endif
|
||||
|
||||
private:
|
||||
/**
|
||||
* Return the bridge associated with the bare JID. Create a new one
|
||||
|
||||
Reference in New Issue
Block a user