From 4ad0683e0cf38ceada809c8713319f983e52eaa6 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Fri, 17 Jun 2022 13:37:49 +0530 Subject: [PATCH] chore: remove redundant pre-fetch --- src/Socket/messages-send.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Socket/messages-send.ts b/src/Socket/messages-send.ts index e357e84..449685c 100644 --- a/src/Socket/messages-send.ts +++ b/src/Socket/messages-send.ts @@ -253,16 +253,6 @@ export const makeMessagesSocket = (config: SocketConfig) => { didFetchNewSession = true } - // pre-fetch all sessions to improve efficiency - // makes a big difference when sending to large groups - // or when there are 100s of devices to push to - if(authState.keys.isInTransaction()) { - await authState.keys.prefetch( - 'session', - jids.map(jid => jidToSignalProtocolAddress(jid).toString()) - ) - } - return didFetchNewSession }