Only queue backfilled attachments after backfill response

This commit is contained in:
trevor-signal
2025-07-15 10:42:57 -04:00
committed by GitHub
parent e938e68c7d
commit 2579dfd9d9
14 changed files with 130 additions and 87 deletions

View File

@@ -203,7 +203,7 @@ export async function onSync(sync: ReadSyncAttributesType): Promise<void> {
message.set({ expirationStartTimestamp });
}
queueUpdateMessage(message.attributes);
drop(queueUpdateMessage(message.attributes));
await remove(sync);
} catch (error) {

View File

@@ -17,6 +17,7 @@ import { queueUpdateMessage } from '../util/messageBatcher';
import { isAciString } from '../util/isAciString';
import { DataReader, DataWriter } from '../sql/Client';
import { MessageModel } from '../models/messages';
import { drop } from '../util/drop';
const log = createLogger('ViewSyncs');
@@ -136,7 +137,7 @@ export async function onSync(sync: ViewSyncAttributesType): Promise<void> {
}
if (didChangeMessage) {
queueUpdateMessage(message.attributes);
drop(queueUpdateMessage(message.attributes));
}
await remove(sync);