Skip to content
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

Fix early return in MatrixClient.setGuestAccess #487

Merged
merged 1 commit into from
Jul 11, 2017
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 11, 2017

(as well as a similar bug in the test suite)

Turns out that q.all(a, b) === q.all([a]), rather than q.all([a,b]): it
only waits for the first promise - which means that client.setGuestAccess
would swallow any errors returned from the API.

(as well as a similar bug in the test suite)

Turns out that `q.all(a, b)` === `q.all([a])`, rather than `q.all([a,b])`: it
only waits for the *first* promise - which means that `client.setGuestAccess`
would swallow any errors returned from the API.
@dbkr dbkr merged commit b2c7804 into develop Jul 11, 2017
@richvdh richvdh deleted the rav/fix_bad_all_usage branch July 11, 2017 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants