mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: remove redundant pre-fetch
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user