diff --git a/src/userregistration.cpp b/src/userregistration.cpp index f8a76981f0ccb5a90f5336ed62d7eaf2073e9b6d..90d4074b885ac21b2d471ff1bd4e36292d3b5c0d 100644 --- a/src/userregistration.cpp +++ b/src/userregistration.cpp @@ -382,7 +382,7 @@ bool UserRegistration::handleSetRequest(const Swift::JID& from, const Swift::JID for (std::vector::const_iterator it = fields.begin(); it != fields.end(); it++) { #if HAVE_SWIFTEN_3 FormField::ref textSingle = *it; - if (textSingle->getType() == FormField::TextSingleType) { + if (textSingle->getType() == FormField::TextSingleType || textSingle->getType() == FormField::UnknownType) { #else TextSingleFormField::ref textSingle = boost::dynamic_pointer_cast(*it); if (textSingle) {