filterValidAttachments: Allow attachments with no thumbnail
This commit is contained in:
parent
028a3f3ef0
commit
fd408c52cf
4 changed files with 8 additions and 29 deletions
|
@ -38,8 +38,9 @@ export type DeleteForMeAttributesType = {
|
|||
const deletes = new Map<string, DeleteForMeAttributesType>();
|
||||
|
||||
async function remove(item: DeleteForMeAttributesType): Promise<void> {
|
||||
await removeSyncTaskById(item.syncTaskId);
|
||||
deletes.delete(item.envelopeId);
|
||||
const { syncTaskId } = item;
|
||||
await removeSyncTaskById(syncTaskId);
|
||||
deletes.delete(syncTaskId);
|
||||
}
|
||||
|
||||
export async function forMessage(
|
||||
|
@ -84,7 +85,7 @@ export async function onDelete(item: DeleteForMeAttributesType): Promise<void> {
|
|||
|
||||
const logId = `DeletesForMe.onDelete(sentAt=${message.sentAt},timestamp=${item.timestamp},envelopeId=${item.envelopeId})`;
|
||||
|
||||
deletes.set(item.envelopeId, item);
|
||||
deletes.set(item.syncTaskId, item);
|
||||
|
||||
if (!conversation) {
|
||||
log.warn(`${logId}: Conversation not found!`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue