Add a ifndef USE_DATABASE guard around send_history_message

This commit is contained in:
louiz’
2018-01-30 09:14:26 +01:00
parent cb83178894
commit 58fd689166
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -4,7 +4,6 @@
#include <logger/logger.hpp>
#include <xmpp/xmpp_component.hpp>
#include <database/database.hpp>
#include <config/config.hpp>
#include <utils/system.hpp>
#include <utils/time.hpp>
@@ -399,6 +398,7 @@ void XmppComponent::send_muc_message(const std::string& muc_name, const std::str
this->send_stanza(message);
}
#ifdef USE_DATABASE
void XmppComponent::send_history_message(const std::string& muc_name, const std::string& nick, const std::string& body_txt, const std::string& jid_to, Database::time_point::rep timestamp)
{
Stanza message("message");
@@ -422,6 +422,7 @@ void XmppComponent::send_history_message(const std::string& muc_name, const std:
this->send_stanza(message);
}
#endif
void XmppComponent::send_muc_leave(const std::string& muc_name, const std::string& nick, Xmpp::body&& message,
const std::string& jid_to, const bool self, const bool user_requested)