AdHocCommand: fix empty response when user is not registered or storage not configured
This commit is contained in:
parent
9d5d61d9e5
commit
3ba2aa3d34
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,7 @@ boost::shared_ptr<Swift::Command> SettingsAdHocCommand::getForm() {
|
|||
boost::shared_ptr<Swift::Command> response(new Swift::Command("settings", m_id, Swift::Command::Completed));
|
||||
boost::shared_ptr<Swift::Form> form(new Swift::Form());
|
||||
form->addField(Swift::FixedFormField::create("This server does not support transport settings. There is no storage backend configured"));
|
||||
response->setForm(form);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
@ -68,6 +69,7 @@ boost::shared_ptr<Swift::Command> SettingsAdHocCommand::getForm() {
|
|||
boost::shared_ptr<Swift::Command> response(new Swift::Command("settings", m_id, Swift::Command::Completed));
|
||||
boost::shared_ptr<Swift::Form> form(new Swift::Form());
|
||||
form->addField(Swift::FixedFormField::create("You are not registered."));
|
||||
response->setForm(form);
|
||||
return response;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue