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

Pass all matrix_create_room options through #482

Merged
merged 1 commit into from
Aug 7, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Aug 3, 2018

It's annoying to have to edit each time createRoom gets a new knob. Just pass everything through.

There are a couple of related changes to make this work:

  • in matrix_create_and_join_room, filter out the options which apply to that function before calling matrix_create_room

  • in local_user_and_room_fixtures, distinguish between opts which are meant for the user fixture and those that are meant for the room fixture - and then update the handful of points which actually pass in such options

  • the 'publicroomslist' test used to pass 'undef' for a couple of parameters to matrix_create_room; that was wrongheaded and we should not pass those params at all.

It's annoying to have to edit each time createRoom gets a new knob. Just pass
everything through.

There are a couple of related changes to make this work:

* in matrix_create_and_join_room, filter out the options which apply to that
  function before calling matrix_create_room

* in local_user_and_room_fixtures, distinguish between opts which are meant for
  the user fixture and those that are meant for the room fixture - and then
  update the handful of points which actually pass in such options

* the 'publicroomslist' used to pass 'undef' for a couple of parameters to
  matrix_create_room; that was wrongheaded and we should not pass those params
  at all.
@richvdh richvdh requested a review from a team August 3, 2018 17:48
@richvdh richvdh mentioned this pull request Aug 6, 2018
@richvdh richvdh merged commit bbeeb56 into develop Aug 7, 2018
@richvdh richvdh deleted the rav/matrix_create_room_options branch August 7, 2018 11:58
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