Don't create models in backups/import

This commit is contained in:
Fedor Indutny 2024-09-09 16:29:19 -07:00 committed by GitHub
parent bdbc63ccf0
commit 026e9ef853
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 203 additions and 29 deletions

View file

@ -124,11 +124,6 @@ export function isQuoteAMatch(
}
const { authorAci, id } = quote;
const authorConversation = window.ConversationController.lookupOrCreate({
e164: 'author' in quote ? quote.author : undefined,
serviceId: authorAci,
reason: 'helpers.isQuoteAMatch',
});
const isSameTimestamp =
message.sent_at === id ||
@ -138,7 +133,7 @@ export function isQuoteAMatch(
return (
isSameTimestamp &&
message.conversationId === conversationId &&
getAuthorId(message) === authorConversation?.id
getSourceServiceId(message) === authorAci
);
}