Open AlejoLovallo opened 1 month ago
In https://github.com/xmtp/xmtp-js/blob/main/packages/js-sdk/src/Contacts.ts#L332 the addresses set is not used at all and thus when retrieving the contacts list you only get an empty set. the
Update the address set according the consent management behavior.
/** * @dev Get client contacts * @returns set of string contacts addresses */ private _getContacts(): Set<string> { return this.client.contacts.addresses }
Result
Set(0) {}
Describe the bug
In https://github.com/xmtp/xmtp-js/blob/main/packages/js-sdk/src/Contacts.ts#L332 the addresses set is not used at all and thus when retrieving the contacts list you only get an empty set. the
Expected behavior
Update the address set according the consent management behavior.
Steps to reproduce the bug
Result