mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
SocketAPI: Allow opening share dialog if contents still syncing #4608
With the previous changes the "Share..." action was shown but it didn't work yet.
This commit is contained in:
parent
f31d4ba341
commit
2bec587d4d
1 changed files with 2 additions and 4 deletions
|
@ -376,10 +376,8 @@ void SocketApi::processShareRequest(const QString &localFile, SocketListener *li
|
||||||
const QString message = QLatin1String("SHARE:NOP:") + QDir::toNativeSeparators(localFile);
|
const QString message = QLatin1String("SHARE:NOP:") + QDir::toNativeSeparators(localFile);
|
||||||
listener->sendMessage(message);
|
listener->sendMessage(message);
|
||||||
} else {
|
} else {
|
||||||
SyncFileStatus fileStatus = fileData.syncFileStatus();
|
// If the file doesn't have a journal record, it might not be uploaded yet
|
||||||
|
if (!fileData.journalRecord().isValid()) {
|
||||||
// Verify the file is on the server (to our knowledge of course)
|
|
||||||
if (fileStatus.tag() != SyncFileStatus::StatusUpToDate) {
|
|
||||||
const QString message = QLatin1String("SHARE:NOTSYNCED:") + QDir::toNativeSeparators(localFile);
|
const QString message = QLatin1String("SHARE:NOTSYNCED:") + QDir::toNativeSeparators(localFile);
|
||||||
listener->sendMessage(message);
|
listener->sendMessage(message);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue