mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Only queue backfilled attachments after backfill response
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user