Parallelize SQL queries
This commit is contained in:
parent
86b4da1ec2
commit
c64762858e
178 changed files with 3377 additions and 3618 deletions
|
@ -2,6 +2,7 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isEqual } from 'lodash';
|
||||
import { DataReader } from '../sql/Client';
|
||||
import type { StoryRecipientUpdateEvent } from '../textsecure/messageReceiverEvents';
|
||||
import { normalizeServiceId } from '../types/ServiceId';
|
||||
import { normalizeStoryDistributionId } from '../types/StoryDistributionId';
|
||||
|
@ -90,7 +91,7 @@ export async function onStoryRecipientUpdate(
|
|||
window.ConversationController.getOurConversationIdOrThrow();
|
||||
const now = Date.now();
|
||||
|
||||
const messages = await window.Signal.Data.getMessagesBySentAt(timestamp);
|
||||
const messages = await DataReader.getMessagesBySentAt(timestamp);
|
||||
|
||||
// Now we figure out who needs to be added and who needs to removed
|
||||
const handledMessages = messages.filter(item => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue