mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: use store.loadMessage for getMessage in example
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user