( manager: ArchiveImportSourceManager, sourceId: string, chatId: string, importer: (manifestPath: string) => Promise<T> )
| 15 | } |
| 16 | |
| 17 | export async function importPreparedChatWithSource<T>( |
| 18 | manager: ArchiveImportSourceManager, |
| 19 | sourceId: string, |
| 20 | chatId: string, |
| 21 | importer: (manifestPath: string) => Promise<T> |
| 22 | ): Promise<T> { |
| 23 | return manager.withMaterializedChat(sourceId, chatId, importer) |
| 24 | } |
| 25 | |
| 26 | export async function cleanupArchiveImportSources(): Promise<void> { |
| 27 | if (!sourceManager) return |
no test coverage detected