Baileys
Baileys copied to clipboard
Update make-in-memory-store.ts
Thanks for your contribution.
The next step is to wait for review and approval to merge it to main repository
The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.
To test this PR you can run the following command below:
# NPM
npm install @whiskeysockets/baileys@WhiskeySockets/Baileys#PurpShell-patch-1
# YARN v2
yarn add @whiskeysockets/baileys@WhiskeySockets/Baileys#PurpShell-patch-1
I've just tested with this PR and got the following error:
backend\node_modules\@whiskeysockets\baileys\lib\Store\make-in-memory-store.js:143
ttrs.hash
TypeError: Cannot read properties of undefined (reading '0')
at EventEmitter.<anonymous> (\backend\node_modules\@whiskeysockets\baileys\lib\Store\make-in-memory-store.js:143:86)
I have a similar error
/node_modules/@adiwajshing/baileys/lib/Store/make-in-memory-store.js:157
Object.assign(contacts[update.id], contact);
^
TypeError: Cannot convert undefined or null to object
at Function.assign (<anonymous>)
at EventEmitter.<anonymous> (/home/ubuntu/backend/node_modules/@adiwajshing/baileys/lib/Store/make-in-memory-store.js:157:24)