mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-20 05:01:30 +00:00
Fixed:
- Resolving conflicted revision has become more robust. - LiveSync now try to keep local changes when fetching from the rebuilt remote database. - Now, all files will be restored after performing `fetch` immediately.
This commit is contained in:
@@ -477,7 +477,7 @@ export const requestToCouchDB = async (baseUri: string, username: string, passwo
|
||||
|
||||
export async function performRebuildDB(plugin: ObsidianLiveSyncPlugin, method: "localOnly" | "remoteOnly" | "rebuildBothByThisDevice") {
|
||||
if (method == "localOnly") {
|
||||
await plugin.addOnSetup.fetchLocal();
|
||||
await plugin.addOnSetup.fetchLocalWithKeepLocal();
|
||||
}
|
||||
if (method == "remoteOnly") {
|
||||
await plugin.addOnSetup.rebuildRemote();
|
||||
|
||||
Reference in New Issue
Block a user