summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-03-11 00:08:18 +0100
committerlouiz’ <louiz@louiz.org>2020-03-11 00:13:46 +0100
commite967088986f0d32eec662e2ab3749e4ba8e07a21 (patch)
treed0024347d28fed1afafc330ead744ca1bb9043db /src/xmpp/xmpp_component.cpp
parent49a3931784d4b58e1f618f5424701ae6de79833b (diff)
downloadbiboumi-e967088986f0d32eec662e2ab3749e4ba8e07a21.tar.gz
biboumi-e967088986f0d32eec662e2ab3749e4ba8e07a21.tar.bz2
biboumi-e967088986f0d32eec662e2ab3749e4ba8e07a21.tar.xz
biboumi-e967088986f0d32eec662e2ab3749e4ba8e07a21.zip
Make sure we keep the stable-id and origin-id nodes when required
See https://xmpp.org/extensions/xep-0359.html
Diffstat (limited to 'src/xmpp/xmpp_component.cpp')
-rw-r--r--src/xmpp/xmpp_component.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index f82f9ce..767fb2e 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -367,7 +367,7 @@ void XmppComponent::send_topic(const std::string& from, Xmpp::body&& topic, cons
this->send_stanza(message);
}
-void XmppComponent::send_muc_message(const std::string& muc_name, const std::string& nick, Xmpp::body&& xmpp_body, const std::string& jid_to, std::string uuid, std::string id)
+Stanza XmppComponent::make_muc_message(const std::string& muc_name, const std::string& nick, Xmpp::body&& xmpp_body, const std::string& jid_to, std::string uuid, std::string id)
{
Stanza message("message");
message["to"] = jid_to;
@@ -399,7 +399,7 @@ void XmppComponent::send_muc_message(const std::string& muc_name, const std::str
stanza_id["id"] = std::move(uuid);
}
- this->send_stanza(message);
+ return message;
}
#ifdef USE_DATABASE