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:
Cassio Santos
2025-11-19 10:18:19 -03:00
committed by GitHub
parent 0145e4c710
commit 5c456e514e
7 changed files with 67 additions and 3 deletions
+1 -1
View File
@@ -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])
}
}
}
+1
View File
@@ -102,6 +102,7 @@ export const downloadAndProcessHistorySyncNotification = async (
} else {
historyMsg = await downloadHistory(msg, options)
}
return processHistoryMessage(historyMsg)
}