Skip to content

getFileDataByRowIds

const getFileDataByRowIds: (rowIds) => Promise<Map<number, { data: Uint8Array; fileId: string; }>> = sqliteRepo.getFileDataByRowIds

Defined in: src/lib/repositories/chat-history.ts:54

The bytes of specific file rows, keyed by row id; a missing row is absent.

Each carries the fileId it belongs to. A row id alone names a slot, not a picture: after a backup import or a reset the same id can hold different bytes, so a caller that remembers which image it wanted checks it got that.

number[]

Promise<Map<number, { data: Uint8Array; fileId: string; }>>