fix tests
This commit is contained in:
committed by
mathieui
parent
d13f66ab90
commit
7bc27b21e6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user