handle remaining stuff for Quotient::Omittable deprecation
This commit is contained in:
committed by
Tobias Fella
parent
15b7c04834
commit
9e05f17cb7
@@ -63,7 +63,7 @@ QString Registration::recaptchaSiteKey() const
|
||||
void Registration::registerAccount()
|
||||
{
|
||||
setStatus(Working);
|
||||
std::optional<QJsonObject> authData = none;
|
||||
std::optional<QJsonObject> authData = std::nullopt;
|
||||
if (nextStep() == "m.login.recaptcha"_ls) {
|
||||
authData = QJsonObject{
|
||||
{"type"_ls, "m.login.recaptcha"_ls},
|
||||
@@ -176,7 +176,7 @@ void Registration::testHomeserver()
|
||||
if (m_testServerJob) {
|
||||
delete m_testServerJob;
|
||||
}
|
||||
m_testServerJob = m_connection->callApi<NeoChatRegisterJob>("user"_ls, none, "user"_ls, QString(), QString(), QString(), false);
|
||||
m_testServerJob = m_connection->callApi<NeoChatRegisterJob>("user"_ls, std::nullopt, "user"_ls, QString(), QString(), QString(), false);
|
||||
connect(m_testServerJob.data(), &BaseJob::finished, this, [this]() {
|
||||
if (m_testServerJob->error() == BaseJob::StatusCode::ContentAccessError) {
|
||||
setStatus(ServerNoRegistration);
|
||||
|
||||
Reference in New Issue
Block a user