sender-key: Properly digest new uint8array format keys. THANKS @w3nder!!

This commit is contained in:
Rajeh Taher
2025-09-09 23:57:30 +03:00
parent 2ebaaf35a4
commit 9aa356845d
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -1159,11 +1159,11 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
const altServer = jidDecode(alt)?.server
const lidMapping = signalRepository.getLIDMappingStore()
if (altServer === 'lid') {
if (!(await lidMapping.getPNForLID(alt))) {
if (typeof await lidMapping.getPNForLID(alt) == "string") {
await lidMapping.storeLIDPNMapping(alt, msg.key.participant || msg.key.remoteJid!)
}
} else {
if (!(await lidMapping.getLIDForPN(alt))) {
if (typeof await lidMapping.getLIDForPN(alt) == "string") {
await lidMapping.storeLIDPNMapping(msg.key.participant || msg.key.remoteJid!, alt)
}
}