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:
Christian Kamm 2018-04-23 11:03:34 +02:00 committed by Roeland Jago Douma
parent f31d4ba341
commit 2bec587d4d
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -376,10 +376,8 @@ void SocketApi::processShareRequest(const QString &localFile, SocketListener *li
const QString message = QLatin1String("SHARE:NOP:") + QDir::toNativeSeparators(localFile);
listener->sendMessage(message);
} else {
SyncFileStatus fileStatus = fileData.syncFileStatus();
// Verify the file is on the server (to our knowledge of course)
if (fileStatus.tag() != SyncFileStatus::StatusUpToDate) {
// If the file doesn't have a journal record, it might not be uploaded yet
if (!fileData.journalRecord().isValid()) {
const QString message = QLatin1String("SHARE:NOTSYNCED:") + QDir::toNativeSeparators(localFile);
listener->sendMessage(message);
return;