Handle also TextIsngleFormField in Settings command

This commit is contained in:
Jan Kaluza 2012-12-11 11:29:54 +01:00
parent 1ebd041848
commit 5f607b5622

View file

@ -99,6 +99,7 @@ boost::shared_ptr<Swift::Command> SettingsAdHocCommand::handleResponse(boost::sh
m_storageBackend->updateUserSetting(user.id, f->getName(), value);
}
else if (boost::dynamic_pointer_cast<Swift::TextSingleFormField>(received)) {
Swift::TextSingleFormField::ref f(boost::dynamic_pointer_cast<Swift::TextSingleFormField>(received));
m_storageBackend->updateUserSetting(user.id, f->getName(), f->getValue());
}
}