mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 23:17:13 +03:00
[CSE] Adjust the calls to ent-to-end encryption
We changed the name.
This commit is contained in:
parent
0f1480728e
commit
08dfe86f37
3 changed files with 5 additions and 5 deletions
|
@ -282,7 +282,7 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
|
|||
connect(ac, &QAction::triggered, [this, &fileId](bool triggered) {
|
||||
Q_UNUSED(triggered);
|
||||
auto job = new OCC::JsonApiJob(accountsState()->account(),
|
||||
"ocs/v2.php/apps/client_side_encryption/api/v1/encrypted/" + QString(fileId));
|
||||
"ocs/v2.php/apps/end_to_end_encryption/api/v1/encrypted/" + QString(fileId));
|
||||
|
||||
connect(job, &OCC::JsonApiJob::jsonReceived, [this](const QJsonDocument& json, int httpResponse) {
|
||||
Q_UNUSED(json);
|
||||
|
@ -295,7 +295,7 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
|
|||
connect(ac, &QAction::triggered, [this, &fileId](bool triggered) {
|
||||
Q_UNUSED(triggered);
|
||||
auto job = new OCC::DeleteApiJob(accountsState()->account(),
|
||||
"ocs/v2.php/apps/client_side_encryption/api/v1/encrypted/" + QString(fileId));
|
||||
"ocs/v2.php/apps/end_to_end_encryption/api/v1/encrypted/" + QString(fileId));
|
||||
connect(job, &OCC::DeleteApiJob::result, [this](int httpResponse) {
|
||||
qCInfo(lcAccountSettings) << "Decrypt Http Response" << httpResponse;
|
||||
});
|
||||
|
|
|
@ -87,8 +87,8 @@ bool Capabilities::shareResharing() const
|
|||
|
||||
bool Capabilities::clientSideEncryptionAvaliable() const
|
||||
{
|
||||
return _capabilities.keys().indexOf("client-side-encryption") != -1
|
||||
? _capabilities["client-side-encryption"].toMap()["enabled"].toBool() : false;
|
||||
return _capabilities.keys().indexOf("end-to-end-encryption") != -1
|
||||
? _capabilities["end-to-end-encryption"].toMap()["enabled"].toBool() : false;
|
||||
}
|
||||
|
||||
bool Capabilities::notificationsAvailable() const
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace OCC
|
|||
|
||||
Q_LOGGING_CATEGORY(lcCse, "sync.clientsideencryption", QtInfoMsg)
|
||||
|
||||
QString baseUrl = QStringLiteral("ocs/v2.php/apps/client_side_encryption/api/v1/");
|
||||
QString baseUrl = QStringLiteral("ocs/v2.php/apps/end_to_end_encryption/api/v1/");
|
||||
QString baseDirectory = QDir::homePath() + QStringLiteral("/.nextcloud-keys/");
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Reference in a new issue