mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-29 12:33:20 +00:00
fix: preserve the active journal protocol
This commit is contained in:
1 parent
f67d224657
commit
b4800d9756
1 file changed
+6
@@ -21,5 +21,11 @@ export function syncActivatedRemoteSettings(
|
|||||||
...pickPostgRESTSyncSettings(source),
|
...pickPostgRESTSyncSettings(source),
|
||||||
...pickCouchDBSyncSettings(source),
|
...pickCouchDBSyncSettings(source),
|
||||||
...pickP2PSyncSettings(source),
|
...pickP2PSyncSettings(source),
|
||||||
|
// Provider pickers share these fields. Keep the active profile's protocol after
|
||||||
|
// collecting provider-specific connection fields so that one provider cannot
|
||||||
|
// normalise another provider's Journal policy.
|
||||||
|
expectedRepositoryId: source.expectedRepositoryId ?? "",
|
||||||
|
journalFormat: source.journalFormat ?? "opaque-v1",
|
||||||
|
packReadPolicy: source.packReadPolicy ?? "whole-pack",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user