diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-10-02 16:22:15 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-10-02 16:22:15 +0300 |
commit | fa8e64a38521b76cd8fadd40bb4956b31cf7ad28 (patch) | |
tree | f31ee4a57bc55ffc0be1fdfb02b7e4c14b1703b1 /iOSClient | |
parent | 8b0adbe7ab33668c9d06f68bf209b7fe9f675b6f (diff) |
task
Diffstat (limited to 'iOSClient')
-rw-r--r-- | iOSClient/Database/NCManageDatabase.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iOSClient/Database/NCManageDatabase.swift b/iOSClient/Database/NCManageDatabase.swift index 72eb4f75f..915e1d82b 100644 --- a/iOSClient/Database/NCManageDatabase.swift +++ b/iOSClient/Database/NCManageDatabase.swift @@ -1776,7 +1776,7 @@ class NCManageDatabase: NSObject { let realm = try! Realm() realm.refresh() - if realm.objects(tableMetadata.self).filter(NSPredicate(format: "account == %@ && serverUrl == %@ && fileName == %@ && session == %@", metadata.account, metadata.serverUrl, metadata.fileName, metadata.session)).first != nil { + if realm.objects(tableMetadata.self).filter(NSPredicate(format: "account == %@ && serverUrl == %@ && fileName == %@ && session != ''", metadata.account, metadata.serverUrl, metadata.fileName)).first != nil { return } |