[core] NOWEB - handle lid-mapping.update
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user