feat: use store.loadMessage for getMessage in example

This commit is contained in:
Adhiraj Singh
2022-07-16 09:42:16 +05:30
parent 3df968807d
commit af1d5f6a01

View File

@@ -36,6 +36,12 @@ const startSock = async() => {
msgRetryCounterMap,
// implement to handle retries
getMessage: async key => {
if(store) {
const msg = await store.loadMessage(key.remoteJid!, key.id!, undefined)
return msg?.message || undefined
}
// only if store is present
return {
conversation: 'hello'
}