Skip to content

Commit

Permalink
Use a non-deprecated API to send m.room.test (#1080)
Browse files Browse the repository at this point in the history
Fixes: #1064
Signed-off-by: Kurt Roeckx <[email protected]>
  • Loading branch information
kroeckx authored Jul 22, 2021
1 parent 6895868 commit ba1157a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/10apidoc/30room-create.pl
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ =head2 matrix_create_room_synced
=cut

my $txn_id = 1000000;

sub matrix_create_room_synced
{
my ( $user, %params ) = @_;
Expand All @@ -436,11 +438,12 @@ sub matrix_create_room_synced

matrix_do_and_wait_for_sync( $user,
do => sub {
my $uri = "/r0/rooms/$room_id/send/m.room.test";
my $uri = "/r0/rooms/$room_id/send/m.room.test/$txn_id";
$txn_id++;

do_request_json_for(
$user,
method => "POST",
method => "PUT",
uri => $uri,
content => {},
);
Expand Down

0 comments on commit ba1157a

Please sign in to comment.