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

room-tojson-fails-when-rooom-doesnt-have-owner #43

Closed
wants to merge 1 commit into from
Closed

room-tojson-fails-when-rooom-doesnt-have-owner #43

wants to merge 1 commit into from

Conversation

G-Rath
Copy link

@G-Rath G-Rath commented May 25, 2017

Added id to the User's toJson, and replaced call to getId() for the owner in Room's toJson with a null check.

This means that toJson can be called on a Room regardless of if it has an owner or not (since rooms returned by get_all_rooms don't have their owners included in the return).

By adding the id field to User's toJson, the api remains backwards compatible, since the id field remains.

… the owner in `Room`'s `toJson` with a null check.

 This means that `toJson` can be called on a `Room` regardless of if it has an owner or not (since rooms returned by get_all_rooms don't have their owners included in the return),
  and by adding the `id` field to `User`'s `toJson`, the api remains backwards compatible.
@G-Rath
Copy link
Author

G-Rath commented May 25, 2017

Fixes #42

@G-Rath G-Rath closed this Mar 13, 2020
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.

1 participant