decode-wa-message, process-message: Fix @hosted lids processing

This commit is contained in:
Rajeh Taher
2025-10-03 00:05:01 +03:00
parent 592f70b81d
commit 50b36ece3b
6 changed files with 39 additions and 14 deletions
+1 -3
View File
@@ -113,7 +113,7 @@ export class LIDMappingStore {
} else {
this.logger.trace(`No LID mapping found for PN user ${pnUser}; batch getting from USync`)
usyncFetch.push(pn)
continue;
continue
}
}
@@ -131,9 +131,7 @@ export class LIDMappingStore {
successfulPairs[pn] = { lid: deviceSpecificLid, pn }
}
console.log(this.pnToLIDFunc)
if (usyncFetch.length > 0) {
console.log(usyncFetch)
const result = await this.pnToLIDFunc?.(usyncFetch) // this function already adds LIDs to mapping
if (result && result.length > 0) {
this.storeLIDPNMappings(result)