mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-08-29 06:47:06 +00:00
fix: preserve the active journal protocol
This commit is contained in:
@@ -21,5 +21,11 @@ export function syncActivatedRemoteSettings(
|
||||
...pickPostgRESTSyncSettings(source),
|
||||
...pickCouchDBSyncSettings(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