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

@@ -44,6 +44,11 @@ NeoChatConnection::NeoChatConnection(QObject *parent)
connect(this, &NeoChatConnection::networkError, this, [this]() {
setIsOnline(false);
});
connect(this, &NeoChatConnection::requestFailed, this, [this](BaseJob *job) {
if (job->error() == BaseJob::UserConsentRequired) {
Q_EMIT userConsentRequired(job->errorUrl());
}
});
}
NeoChatConnection::NeoChatConnection(const QUrl &server, QObject *parent)