search for duplicates using the sent_at timestamp to speedup db call

pull/1404/head
Audric Ackermann 4 years ago
parent cd3ec67099
commit 6b56f1174e

@ -371,8 +371,8 @@ async function isMessageDuplicate({
const { Errors } = window.Signal.Types;
try {
const result = await window.Signal.Data.getMessagesBySender(
{ source, sourceDevice },
const result = await window.Signal.Data.getMessageBySender(
{ source, sourceDevice, sent_at: timestamp },
{
Message: window.Whisper.Message,
}

Loading…
Cancel
Save