Refactor avatar fetching and updating logic

This commit is contained in:
trevor-signal
2026-02-19 10:19:57 -05:00
committed by GitHub
parent 84eb5c57e3
commit b9f88c1b65
5 changed files with 63 additions and 163 deletions

View File

@@ -13,7 +13,7 @@ import * as Bytes from '../Bytes.std.js';
import { createLogger } from '../logging/log.std.js';
import * as Errors from '../types/errors.std.js';
import { deleteExternalFiles } from '../types/Conversation.node.js';
import { deleteExternalFiles } from '../types/Conversation.std.js';
import { createBatcher } from '../util/batcher.std.js';
import { assertDev, softAssert } from '../util/assert.std.js';
import { mapObjectWithSpec } from '../util/mapObjectWithSpec.std.js';
@@ -561,7 +561,7 @@ async function removeConversation(id: string): Promise<void> {
if (existing) {
await writableChannel.removeConversation(id);
await deleteExternalFiles(existing, {
deleteAttachmentData: maybeDeleteAttachmentFile,
maybeDeleteAttachmentFile,
});
}
}