diff --git a/js/background.js b/js/background.js index 994d6b2cb..522e92310 100644 --- a/js/background.js +++ b/js/background.js @@ -1403,6 +1403,14 @@ } const envelope = ev.proto; const message = await initIncomingMessage(envelope, { isError: true }); + const isDuplicate = await isMessageDuplicate(message); + if (isDuplicate) { + ev.confirm(); + window.log.warn( + `Got duplicate error for message ${message.idForLogging()}` + ); + return; + } await message.saveErrors(error || new Error('Error was null')); const id = message.get('conversationId');