mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
search for duplicates using the sent_at timestamp to speedup db call
This commit is contained in:
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…
Reference in a new issue