This commit is contained in:
Andras Schmelczer 2025-03-02 18:27:02 +00:00
parent 8cdad79160
commit c250e82998
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -1,7 +1,8 @@
import type { DocumentMetadata, RelativePath } from "src/persistence/database";
import type { DocumentMetadata, RelativePath } from "../persistence/database";
import { EMPTY_HASH } from "./hash";
export function findMatchingFileBasedOnHash(
// TODO: make this smarter so that offline files can be renamed & edited at the same time
export function findMatchingFile(
contentHash: string,
candidates: [RelativePath, DocumentMetadata][]
): [RelativePath, DocumentMetadata] | undefined {