Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Takmazov <vitalyster@gmail.com>2022-02-24 16:36:52 +0300
committerVitaly Takmazov <vitalyster@gmail.com>2022-02-24 16:38:07 +0300
commit110b846908a52cd4860c4e5161ebd5ef0d6aaf46 (patch)
tree0d106b7e9db8112eccf3902706170d35b4db6ff7
parentaf8ebff0413aa4b51c324548c227392948eea2ee (diff)
Display disco#items on transport JID correctly
* It was addressed in https://github.com/SpectrumIM/spectrum2/pull/402 but added to the wrong place
-rw-r--r--spectrum/src/frontends/xmpp/discoinforesponder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spectrum/src/frontends/xmpp/discoinforesponder.cpp b/spectrum/src/frontends/xmpp/discoinforesponder.cpp
index aaa2fcde..8736f5fd 100644
--- a/spectrum/src/frontends/xmpp/discoinforesponder.cpp
+++ b/spectrum/src/frontends/xmpp/discoinforesponder.cpp
@@ -84,6 +84,7 @@ void DiscoInfoResponder::updateFeatures() {
features2.push_back("jabber:iq:register");
features2.push_back("jabber:iq:gateway");
features2.push_back("jabber:iq:private");
+ features2.push_back("http://jabber.org/protocol/disco#items");
features2.push_back("http://jabber.org/protocol/disco#info");
features2.push_back("http://jabber.org/protocol/commands");
if (CONFIG_BOOL_DEFAULTED(m_config, "features.muc", false)) {
@@ -148,7 +149,6 @@ bool DiscoInfoResponder::handleGetRequest(const Swift::JID& from, const Swift::J
if (m_commands.find(info->getNode()) != m_commands.end()) {
std::shared_ptr<DiscoInfo> res(new DiscoInfo());
res->addFeature("http://jabber.org/protocol/commands");
- res->addFeature("http://jabber.org/protocol/disco#items");
res->addFeature("jabber:x:data");
res->addIdentity(DiscoInfo::Identity(m_commands[info->getNode()], "automation", "command-node"));
res->setNode(info->getNode());