sender-key: Properly digest new uint8array format keys. THANKS @w3nder!!
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user