mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-15 04:30:12 +00:00
fix: inspect and repair incorrect recorded file sizes
This commit is contained in:
1 parent
fc5f02ca3b
commit
4a245debe7
11 files changed
+488
-57
No files matched your search
@@ -8,10 +8,7 @@ import {
|
||||
readAsBlob,
|
||||
} from "@vrtmrz/livesync-commonlib/compat/common/utils";
|
||||
import { isPlainText } from "@vrtmrz/livesync-commonlib/compat/string_and_binary/path";
|
||||
import type {
|
||||
FileRepairInspection,
|
||||
FileRepairRevision,
|
||||
} from "./fileRepair";
|
||||
import { canRepairRevisionSize, type FileRepairInspection, type FileRepairRevision } from "./fileRepair";
|
||||
|
||||
export type FileRepairRevisionActions = {
|
||||
compareWithVault: boolean;
|
||||
@@ -22,6 +19,7 @@ export type FileRepairRevisionActions = {
|
||||
retryRevision: boolean;
|
||||
discardBranch: boolean;
|
||||
discardRevision: boolean;
|
||||
repairSize: boolean;
|
||||
};
|
||||
|
||||
export type FileRepairTimestampRelation =
|
||||
@@ -87,6 +85,7 @@ export function getFileRepairRevisionActions(
|
||||
!hasConflictBranches &&
|
||||
!revision.metadata.deleted &&
|
||||
!revision.contentReadable,
|
||||
repairSize: canRepairRevisionSize(inspection, revision),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user