fix: example TypeError

This commit is contained in:
Adhiraj Singh
2022-09-20 12:11:56 +05:30
parent 5aaefa94d6
commit 7d7249887c

View File

@@ -34,10 +34,11 @@ const startSock = async() => {
printQRInTerminal: true, printQRInTerminal: true,
auth: state, auth: state,
msgRetryCounterMap, msgRetryCounterMap,
generateHighQualityLinkPreview: true,
// implement to handle retries // implement to handle retries
getMessage: async key => { getMessage: async key => {
if(store) { if(store) {
const msg = await store.loadMessage(key.remoteJid!, key.id!, undefined) const msg = await store.loadMessage(key.remoteJid!, key.id!)
return msg?.message || undefined return msg?.message || undefined
} }