[core] NOWEB - handle lid-mapping.update

This commit is contained in:
devlikepro committed 2025-09-23 15:50:52 +07:00
1 parent 1c2bc5b395
commit aa33ac4b1d
1 file changed
+10
@@ -185,6 +185,16 @@ export class NowebPersistentStore implements INowebStore {
),
);
// Lids
ev.on('lid-mapping.update', (data) => {
this.withLock('lids', async () => {
const lids = await this.handleLidPNUpdates([data]);
this.logger.debug(
`lid-mapping.update - '${lids.length}' synced lid to pn mapping`,
);
});
});
// Contacts
ev.on('contacts.upsert', (data) => {
this.withLock('contacts', () => this.onContactsUpsert(data));