Remove uses of Quotient:Omittable
Note this technically won't build for now because of the lack of RoomMember support but I'll push that at the quotient-next branch next. This is needed as well to get a branch that builds on dev.
This commit is contained in:
committed by
Tobias Fella
parent
c6a4057659
commit
58d727350d
@@ -63,7 +63,7 @@ QString Registration::recaptchaSiteKey() const
|
||||
void Registration::registerAccount()
|
||||
{
|
||||
setStatus(Working);
|
||||
Omittable<QJsonObject> authData = none;
|
||||
Omittable<QJsonObject> authData;
|
||||
if (nextStep() == "m.login.recaptcha"_ls) {
|
||||
authData = QJsonObject{
|
||||
{"type"_ls, "m.login.recaptcha"_ls},
|
||||
@@ -186,6 +186,7 @@ void Registration::testHomeserver()
|
||||
delete m_testServerJob;
|
||||
}
|
||||
m_testServerJob = m_connection->callApi<NeoChatRegisterJob>("user"_ls, none, "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