lid-mapping,signal: improvements to hosted device support in lid map

This commit is contained in:
Rajeh Taher
2025-10-08 02:39:02 +03:00
parent 9e4dbb2e22
commit e9198b773e
2 changed files with 14 additions and 9 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ import {
getBinaryNodeChildUInt,
jidDecode,
S_WHATSAPP_NET,
WAJIDDomains
WAJIDDomains,
} from '../WABinary'
import type { DeviceListData, ParsedDeviceInfo, USyncQueryResultList } from '../WAUSync'
import { Curve, generateSignalPubKey } from './crypto'
@@ -153,7 +153,7 @@ export const extractDeviceJids = (
((myUser !== user && myLid !== user) || myDevice !== device) && // either different user or if me user, not this device
(device === 0 || !!keyIndex) // ensure that "key-index" is specified for "non-zero" devices, produces a bad req otherwise
) {
extracted.push({ user, device, domainType, server })
extracted.push({ user, device, domainType: isHosted ? domainType === WAJIDDomains.LID ? WAJIDDomains.HOSTED_LID : WAJIDDomains.HOSTED : domainType, server })
}
}
}