summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-12-26 19:52:41 +0100
committerlouiz’ <louiz@louiz.org>2017-12-26 19:52:41 +0100
commit37340e593ffb61eaccc444a1efdb3aa6f784a14a (patch)
tree8ac71f9564d7c72a945d759d842697ce22873bfa /src/bridge
parent286aa58c7b42f78eb72d4f05170a8c25edeba504 (diff)
downloadbiboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.tar.gz
biboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.tar.bz2
biboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.tar.xz
biboumi-37340e593ffb61eaccc444a1efdb3aa6f784a14a.zip
Add a <x muc#user> node on outgoing private MUC messages
See https://xmpp.org/extensions/xep-0045.html#privatemessage fix #3321
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 57f0628..54bee84 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -862,7 +862,8 @@ void Bridge::send_message(const Iid& iid, const std::string& nick, const std::st
const auto chan_name = Iid(Jid(it->second).local, {}).get_local();
for (const auto& resource: this->resources_in_chan[ChannelKey{chan_name, iid.get_server()}])
this->xmpp.send_message(it->second, this->make_xmpp_body(body, encoding),
- this->user_jid + "/" + resource, "chat", true, true);
+ this->user_jid + "/"
+ + resource, "chat", true, true, true);
}
else
{