Skip to content

Pass all matrix_create_room options through#482

Merged
richvdh merged 1 commit into
developfrom
rav/matrix_create_room_options
Aug 7, 2018
Merged

Pass all matrix_create_room options through#482
richvdh merged 1 commit into
developfrom
rav/matrix_create_room_options

Conversation

@richvdh
Copy link
Copy Markdown
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