mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-20 17:59:47 +00:00
De-noise removal of unprocessed envelopes
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -4601,7 +4601,6 @@ function getUnprocessedByIdsAndIncrementAttempts(
|
||||
}
|
||||
|
||||
function removeUnprocesseds(db: WritableDB, ids: ReadonlyArray<string>): void {
|
||||
logger.info('removeUnprocesseds', { totalIds: ids.length });
|
||||
db.prepare<ArrayQuery>(
|
||||
`
|
||||
DELETE FROM unprocessed
|
||||
@@ -4611,7 +4610,6 @@ function removeUnprocesseds(db: WritableDB, ids: ReadonlyArray<string>): void {
|
||||
}
|
||||
|
||||
function removeUnprocessed(db: WritableDB, id: string | Array<string>): void {
|
||||
logger.info('removeUnprocessedSync', { id });
|
||||
if (!Array.isArray(id)) {
|
||||
prepare(db, 'DELETE FROM unprocessed WHERE id = $id;').run({ id });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user