Skip to content

Commit

Permalink
Switch shutdown_room to delete room admin API (#988)
Browse files Browse the repository at this point in the history
In preparation for removing the deprecated `shutdown_room` API.
  • Loading branch information
dklimpel authored Dec 10, 2020
1 parent 729af31 commit e345c72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/48admin.pl
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,12 @@ sub await_purge_complete {
})->then( sub {
do_request_json_for( $admin,
method => "POST",
full_uri => "/_synapse/admin/v1/shutdown_room/$room_id",
content => { "new_room_user_id" => $dummy_user->user_id },
full_uri => "/_synapse/admin/v1/rooms/$room_id/delete",
content => {
new_room_user_id => $dummy_user->user_id,
block => JSON::true,
purge => JSON::false,
},
);
})->SyTest::pass_on_done( "Shutdown room returned success" )
->then( sub {
Expand Down

0 comments on commit e345c72

Please sign in to comment.