Move to MessageCache.saveMessage, queue downloads piecemeal

This commit is contained in:
Scott Nonnenberg
2025-01-24 06:37:18 -10:00
committed by GitHub
parent 197660a966
commit ed30059bd5
32 changed files with 138 additions and 298 deletions

View File

@@ -3437,10 +3437,7 @@ async function appendChangeMessages(
strictAssert(first !== undefined, 'First message must be there');
log.info(`appendChangeMessages/${logId}: updating ${first.id}`);
await DataWriter.saveMessage(first, {
ourAci,
postSaveUpdates,
await window.MessageCache.saveMessage(first, {
// We don't use forceSave here because this is an update of existing
// message.
});