Use minimal replacement class for MessageModel

This commit is contained in:
Scott Nonnenberg
2025-01-10 08:18:32 +10:00
committed by GitHub
parent 6b00cf756e
commit f846678b90
95 changed files with 3919 additions and 4457 deletions

View File

@@ -16,6 +16,7 @@ import { stats } from '../util/benchmark/stats';
import type { StatsType } from '../util/benchmark/stats';
import type { MessageAttributesType } from '../model-types.d';
import * as log from '../logging/log';
import { postSaveUpdates } from '../util/cleanup';
const BUFFER_DELAY_MS = 50;
@@ -90,6 +91,7 @@ export async function populateConversationWithMessages({
await DataWriter.saveMessages(messages, {
forceSave: true,
ourAci,
postSaveUpdates,
});
conversation.set('active_at', Date.now());