Skip to content

Commit 114bd91

Browse files
committed
Removed call to getContactLidAndPhone
1 parent e17721b commit 114bd91

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/Client.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,6 @@ class Client extends EventEmitter {
546546
* @param {String} newId The user's new id after the change.
547547
* @param {Boolean} isContact Indicates if a contact or a group participant changed their phone number.
548548
*/
549-
if (newId.endsWith('@lid')) {
550-
let u = await this.getContactLidAndPhone(newId);
551-
newId = u[0].pn;
552-
}
553-
if (oldId.endsWith('@lid')) {
554-
let u = await this.getContactLidAndPhone(oldId);
555-
oldId = u[0].pn;
556-
}
557549
this.emit(Events.CONTACT_CHANGED, message, oldId, newId, isContact);
558550
}
559551
});

0 commit comments

Comments
 (0)