fix: cannot send message on new Whatsapp Business limited accounts (#2080)
* fix: cannot send message on new Whatsapp Business limited accounts * chore: add woraround to resend the message on 475 errors * fix: lint * fix: add handler * fix: lint * Update src/Socket/messages-send.ts --------- Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
@@ -75,7 +75,7 @@ export function makeCacheableSignalKeyStore(
|
||||
const item = fetched[id]
|
||||
if (item) {
|
||||
data[id] = item
|
||||
cache.set(getUniqueId(type, id), item)
|
||||
cache.set(getUniqueId(type, id), item as SignalDataTypeMap[keyof SignalDataTypeMap])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,6 +102,7 @@ export const downloadAndProcessHistorySyncNotification = async (
|
||||
} else {
|
||||
historyMsg = await downloadHistory(msg, options)
|
||||
}
|
||||
|
||||
return processHistoryMessage(historyMsg)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user