general: Bring back USYNC calls for LID getting, and improve
This commit is contained in:
@@ -292,6 +292,11 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
|
||||
if (result) {
|
||||
// TODO: LID MAP this stuff (lid protocol will now return lid with devices)
|
||||
const lidResults = result.list.filter(a => !!a.lid)
|
||||
if (lidResults.length > 0) {
|
||||
logger.trace('Storing LID maps from device call')
|
||||
await signalRepository.lidMapping.storeLIDPNMappings(lidResults.map(a => ({lid: a.lid as string, pn: a.id})))
|
||||
}
|
||||
const extracted = extractDeviceJids(result?.list, authState.creds.me!.id, ignoreZeroDevices)
|
||||
const deviceMap: { [_: string]: FullJid[] } = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user