From bfe5a5edae289db233123f9e5cb4df229a86777b Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Fri, 1 Oct 2021 20:01:30 -0400 Subject: [PATCH] Do not process records if there are none to process --- ts/services/storage.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/services/storage.ts b/ts/services/storage.ts index 23a4fac6b5c..7feddb05fa7 100644 --- a/ts/services/storage.ts +++ b/ts/services/storage.ts @@ -809,6 +809,10 @@ async function processManifest( }); }); + if (!remoteOnlyRecords.size) { + return false; + } + const conflictCount = await processRemoteRecords(remoteOnlyRecords); // Post-merge, if our local records contain any storage IDs that were not