-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise how contacts()
works
#602
Comments
I did it this way because I wanted it to be read-only. It was too difficult to make this property read-only using JS so I resorted to using the iterator. I don't mind exposing the value but please don't call it |
Please send a pull request. |
Against |
@SatoshiNakamotogmx Are you asking about what a pull request is? It's only needed if you would like to make changes to the code which you want to be incorporated in the upstream. |
Think this will do: tinode/tinode-js#43 |
Either way I don't care anymore, I'll work around it. This process has been too tedious and bureaucratic. |
Thanks |
At the moment it is not possible to retrieve a list of all contacts directly, one has to make a call to
.contacts()
and provide aCB
to retrieve them one by one:Getting the list of all contacts at once is sometimes very handy and accessing the private property doesn't sound like a good idea.
I suggest either a
getContacts()
is set for the_contacts
, possibly with a promise, or another way is devised for retrieving the list.The text was updated successfully, but these errors were encountered: