Move userConsentRequired to NeoChatConnection

This commit is contained in:
Tobias Fella
2024-01-07 19:44:37 +01:00
parent 9e2bf0da26
commit c10bcf1764
5 changed files with 11 additions and 13 deletions

View File

@@ -152,12 +152,6 @@ void Controller::addConnection(NeoChatConnection *c)
dropConnection(c);
});
connect(c, &NeoChatConnection::requestFailed, this, [this](BaseJob *job) {
if (job->error() == BaseJob::UserConsentRequired) {
Q_EMIT userConsentRequired(job->errorUrl());
}
});
c->sync();
Q_EMIT connectionAdded(c);