fix: store LID-PN mapping from contactAction sync (#2266)

* fix: store LID-PN mapping from contactAction sync

* chore: improve testing of sync actions
This commit is contained in:
João Lucas de Oliveira Lopes
2026-01-20 07:39:41 -03:00
committed by GitHub
parent a89736f89d
commit 8ff01b8bb3
5 changed files with 631 additions and 9 deletions
+8
View File
@@ -1185,6 +1185,14 @@ export const makeChatsSocket = (config: SocketConfig) => {
}, 20_000)
})
ev.on('lid-mapping.update', async ({ lid, pn }) => {
try {
await signalRepository.lidMapping.storeLIDPNMappings([{ lid, pn }])
} catch (error) {
logger.warn({ lid, pn, error }, 'Failed to store LID-PN mapping')
}
})
return {
...sock,
createCallLink,