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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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(