mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
SocketAPI: Use NOP only, not NONE in the share api protocol.
Otherwise, plugins might brake, as the linux one did.
This commit is contained in:
parent
f443377978
commit
15988c6fda
1 changed files with 4 additions and 2 deletions
|
@ -50,11 +50,13 @@ bool SyncFileStatus::sharedWithMe()
|
|||
QString SyncFileStatus::toSocketAPIString() const
|
||||
{
|
||||
QString statusString;
|
||||
bool canBeShared = true;
|
||||
|
||||
switch(_tag)
|
||||
{
|
||||
case StatusNone:
|
||||
statusString = QLatin1String("NONE");
|
||||
statusString = QLatin1String("NOP");
|
||||
canBeShared = false;
|
||||
break;
|
||||
case StatusSync:
|
||||
statusString = QLatin1String("SYNC");
|
||||
|
@ -70,7 +72,7 @@ QString SyncFileStatus::toSocketAPIString() const
|
|||
statusString = QLatin1String("ERROR");
|
||||
break;
|
||||
}
|
||||
if(_sharedWithMe) {
|
||||
if(canBeShared && _sharedWithMe) {
|
||||
statusString += QLatin1String("+SWM");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue