filterValidAttachments: Allow attachments with no thumbnail

This commit is contained in:
Scott Nonnenberg
2024-09-17 07:02:48 +10:00
committed by GitHub
parent 028a3f3ef0
commit fd408c52cf
4 changed files with 8 additions and 29 deletions

View File

@@ -40,7 +40,9 @@ export type ViewSyncAttributesType = {
const viewSyncs = new Map<string, ViewSyncAttributesType>();
async function remove(sync: ViewSyncAttributesType): Promise<void> {
await DataWriter.removeSyncTaskById(sync.syncTaskId);
const { syncTaskId } = sync;
viewSyncs.delete(syncTaskId);
await DataWriter.removeSyncTaskById(syncTaskId);
}
export async function forMessage(