diff --git a/iOSClient/Data/NCManageDatabase+Directory.swift b/iOSClient/Data/NCManageDatabase+Directory.swift index b65e076e4e..2eaf07136b 100644 --- a/iOSClient/Data/NCManageDatabase+Directory.swift +++ b/iOSClient/Data/NCManageDatabase+Directory.swift @@ -235,7 +235,7 @@ extension NCManageDatabase { directory.serverUrl = serverUrl directory.offline = offline addDirectory(directory: directory, metadata: metadata) - realm.add(directory) + realm.add(directory, update: .all) } } } catch let error {