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:
committed by
GitHub
parent
a89736f89d
commit
8ff01b8bb3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user