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

Test support for inviting 3pids in /createRoom #128

Merged
merged 4 commits into from
Jan 5, 2016

Conversation

erikjohnston
Copy link
Member

my $invite_info = {
medium => "email",
address => $invitee_email,
id_server => $id_server->name,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please align the three '=>'s

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

id_server => $id_server->name,
};
matrix_create_room( $inviter, invite_3pid => [ $invite_info ] )
->then( sub {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would avoid the excessive indentation here, to end this then block and start another; by doing

   matrix_create_room( ... );
})->then( sub {
   ( $room_id ) = @_;

@leonerd
Copy link
Contributor

leonerd commented Jan 5, 2016

Aside from the indentation/reflow (which can be fixed up later) this LGTM.
Still has a red mark from testing, presumably because the related synapse branch isn't merged yet

@erikjohnston erikjohnston force-pushed the erikj/create_room_3pid_invite branch from 36d0307 to 5cbc8c0 Compare January 5, 2016 14:12
erikjohnston added a commit that referenced this pull request Jan 5, 2016
Test support for inviting 3pids in /createRoom
@erikjohnston erikjohnston merged commit 598a13f into develop Jan 5, 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