diff options
Diffstat (limited to 'src/gui/sharedialog.cpp')
-rw-r--r-- | src/gui/sharedialog.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index ebfb8f330..ff986390d 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -41,7 +41,6 @@ ShareDialog::ShareDialog(QPointer<AccountState> accountState, const QString &sharePath, const QString &localPath, SharePermissions maxSharingPermissions, - const QByteArray &numericFileId, ShareDialogStartPage startPage, QWidget *parent) : QDialog(parent) @@ -50,7 +49,6 @@ ShareDialog::ShareDialog(QPointer<AccountState> accountState, , _sharePath(sharePath) , _localPath(localPath) , _maxSharingPermissions(maxSharingPermissions) - , _privateLinkUrl(accountState->account()->deprecatedPrivateLinkUrl(numericFileId).toString(QUrl::FullyEncoded)) , _startPage(startPage) , _linkWidget(nullptr) , _userGroupWidget(nullptr) @@ -166,13 +164,9 @@ void ShareDialog::slotPropfindReceived(const QVariantMap &result) qCInfo(lcSharing) << "Received sharing permissions for" << _sharePath << _maxSharingPermissions; } auto privateLinkUrl = result["privatelink"].toString(); - auto numericFileId = result["fileid"].toByteArray(); if (!privateLinkUrl.isEmpty()) { qCInfo(lcSharing) << "Received private link url for" << _sharePath << privateLinkUrl; _privateLinkUrl = privateLinkUrl; - } else if (!numericFileId.isEmpty()) { - qCInfo(lcSharing) << "Received numeric file id for" << _sharePath << numericFileId; - _privateLinkUrl = _accountState->account()->deprecatedPrivateLinkUrl(numericFileId).toString(QUrl::FullyEncoded); } showSharingUi(); |