Only save messages coming from real MUC participants in the database
Not messages coming from the room, for example
This commit is contained in:
@@ -616,6 +616,7 @@ void Bridge::send_message(const Iid& iid, const std::string& nick, const std::st
|
||||
{
|
||||
#ifdef USE_DATABASE
|
||||
const auto xmpp_body = this->make_xmpp_body(body, encoding);
|
||||
if (!nick.empty())
|
||||
Database::store_muc_message(this->get_bare_jid(), iid, std::chrono::system_clock::now(),
|
||||
std::get<0>(xmpp_body), nick);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user