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

REST API: extend the list of my rooms by name and subject #1021

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

michalwski
Copy link
Contributor

This PR adds name and subject to the action returning list of room to which user is subscribed.

name => proplists:get_value(roomname, Config),
subject => proplists:get_value(subject, Config)};
_ ->
[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't function get_room_details return empty map instead of empty list when the case branch does not return {ok, Config, _} tuple?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The empty list is correct. Thanks to the lists:flatten which run before encoding, such faulty rooms, if there are, will be filtered out.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

@ludwikbukowski ludwikbukowski merged commit 00b0d4d into master Oct 11, 2016
@michalwski michalwski deleted the rest-api-rooms-list-with-more-details branch October 28, 2016 17:02
@michalwski michalwski mentioned this pull request Nov 8, 2016
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