mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: transaction not respecting null set
This commit is contained in:
@@ -26,7 +26,7 @@ export const addTransactionCapability = (state: SignalKeyStore, logger: Logger):
|
|||||||
}
|
}
|
||||||
|
|
||||||
const dict = transactionCache[type]
|
const dict = transactionCache[type]
|
||||||
const idsRequiringFetch = ids.filter(item => !dict?.[item])
|
const idsRequiringFetch = dict ? ids.filter(item => !(item in dict)) : ids
|
||||||
// only fetch if there are any items to fetch
|
// only fetch if there are any items to fetch
|
||||||
if(idsRequiringFetch.length) {
|
if(idsRequiringFetch.length) {
|
||||||
const result = await state.get(type, idsRequiringFetch)
|
const result = await state.get(type, idsRequiringFetch)
|
||||||
|
|||||||
Reference in New Issue
Block a user