fix tests

This commit is contained in:
Luca Matei Pintilie
2025-11-28 20:30:12 +01:00
committed by mathieui
parent d13f66ab90
commit 7bc27b21e6
4 changed files with 9 additions and 13 deletions
+4 -2
View File
@@ -234,6 +234,8 @@ void Bridge::send_channel_message(const Iid& iid, const std::string& body, std::
#else
uuid = utils::gen_uuid();
#endif
if (id.empty())
id = utils::gen_uuid();
IrcChannel* channel = irc->get_channel(iid.get_local());
if (!channel->joined)
@@ -264,12 +266,12 @@ void Bridge::send_channel_message(const Iid& iid, const std::string& body, std::
}
}
MessageCallback mirror_to_all_resources = [this, iid, uuid, nodes_to_reflect, body](const IrcClient* irc, const IrcMessage&) {
MessageCallback mirror_to_all_resources = [this, iid, uuid, id, nodes_to_reflect, body](const IrcClient* irc, const IrcMessage&) {
for (const auto& resource: this->resources_in_chan[iid.to_tuple()])
{
auto stanza = this->xmpp.make_muc_message(std::to_string(iid), irc->get_own_nick(), this->make_xmpp_body(body),
this->user_jid + "/"
+ resource, uuid, uuid);
+ resource, uuid, id);
for (const auto& node: nodes_to_reflect)
stanza.add_child(node);
this->xmpp.send_stanza(stanza);