Commit 65601a96 authored by louiz’'s avatar louiz’

The default type for message stanza is "normal"

parent e971f64f
......@@ -335,7 +335,9 @@ void XmppComponent::handle_message(const Stanza& stanza)
try {
type = stanza["type"];
}
catch (const AttributeNotFound&) {}
catch (const AttributeNotFound&) {
type = "normal";
}
malformed_stanza_error.disable();
std::string error_type("cancel");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment