summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-03-11 00:32:18 +0100
committerlouiz’ <louiz@louiz.org>2020-03-11 00:32:18 +0100
commitfc22e06317c8f4df984ab29e6457b7c7e0adafd8 (patch)
treea9daf3cb11a709eb85f683a5c68f94299c5b38d3 /src
parent40d2168ae5dbee4823083058ad8d94f80a3080b5 (diff)
downloadbiboumi-fc22e06317c8f4df984ab29e6457b7c7e0adafd8.tar.gz
biboumi-fc22e06317c8f4df984ab29e6457b7c7e0adafd8.tar.bz2
biboumi-fc22e06317c8f4df984ab29e6457b7c7e0adafd8.tar.xz
biboumi-fc22e06317c8f4df984ab29e6457b7c7e0adafd8.zip
Fix a type stable-id -> stanza-id, and add a test case to be exhaustive
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/biboumi_component.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index f2e3753..6fda98f 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -294,15 +294,15 @@ void BiboumiComponent::handle_message(const Stanza& stanza)
if (origin_id)
nodes_to_reflect.push_back(*origin_id);
const auto own_address = std::to_string(iid) + '@' + this->served_hostname;
- for (const XmlNode* stable_id: stanza.get_children("stable-id", STABLE_ID_NS))
+ for (const XmlNode* stanza_id: stanza.get_children("stanza-id", STABLE_ID_NS))
{
// Stanza ID generating entities, which encounter a
// <stanza-id/> element where the 'by' attribute matches
// the 'by' attribute they would otherwise set, MUST
// delete that element even if they are not adding their
// own stanza ID.
- if (stable_id->get_tag("by") != own_address)
- nodes_to_reflect.push_back(*stable_id);
+ if (stanza_id->get_tag("by") != own_address)
+ nodes_to_reflect.push_back(*stanza_id);
}
bridge->send_channel_message(iid, body->get_inner(), id, std::move(nodes_to_reflect));
}