|
@@ -1262,10 +1262,12 @@ class NCManageDatabase: NSObject {
|
|
if sessionTaskIdentifierPlist != Int(k_taskIdentifierNULL) {
|
|
if sessionTaskIdentifierPlist != Int(k_taskIdentifierNULL) {
|
|
result.sessionTaskIdentifierPlist = sessionTaskIdentifierPlist
|
|
result.sessionTaskIdentifierPlist = sessionTaskIdentifierPlist
|
|
}
|
|
}
|
|
-
|
|
|
|
- self.setDateReadDirectory(directoryID: result.directoryID)
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if results.count > 0 {
|
|
|
|
+ self.setDateReadDirectory(directoryID: results[0].directoryID)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
func setMetadataFavorite(fileID: String, favorite: Bool) {
|
|
func setMetadataFavorite(fileID: String, favorite: Bool) {
|
|
@@ -1429,7 +1431,7 @@ class NCManageDatabase: NSObject {
|
|
return self.getMetadatas(predicate: predicate, sorted: nil, ascending: false)
|
|
return self.getMetadatas(predicate: predicate, sorted: nil, ascending: false)
|
|
}
|
|
}
|
|
|
|
|
|
- func getRecordsTableMetadataPhotosCameraUpload(serverUrl: String) -> [tableMetadata]? {
|
|
|
|
|
|
+ func getTableMetadatasPhotosCameraUpload(serverUrl: String) -> [tableMetadata]? {
|
|
|
|
|
|
let tableAccount = self.getAccountActive()
|
|
let tableAccount = self.getAccountActive()
|
|
if tableAccount == nil {
|
|
if tableAccount == nil {
|