The default type for message stanza is "normal"

This commit is contained in:
Florent Le Coz
2014-03-28 01:48:08 +01:00
parent e971f64f92
commit 65601a96d2
+3 -1
View File
@@ -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");