1
0
mirror of https://github.com/dani/patrix.git synced 2024-06-17 04:19:12 +02:00

Remove preset and visibility options

This commit is contained in:
Daniel Berteaud 2017-09-09 16:42:46 +02:00
parent 0e6001877c
commit 299fd790fe

View File

@ -30,8 +30,6 @@ GetOptions(
"name=s" => \$opt->{name},
"alias=s" => \$opt->{alias},
"topic=s" => \$opt->{topic},
"preset=s" => \$opt->{preset},
"visibility=s" => \$opt->{visibility},
"federation!" => \$opt->{federation}
);
@ -288,8 +286,6 @@ sub create_room {
$json->{topic} = $opt->{topic} if $opt->{topic};
$json->{name} = $opt->{name} if $opt->{name};
$json->{invite} = $opt->{invite} if $opt->{invite};
$json->{preset} = $opt->{preset} if $opt->{preset};
$json->{visibility} = $opt->{visibility} if $opt->{visbility};
$json->{creation_content}->{'m.federate'} = $opt->{federation};
$req->header( 'Content-Type' => 'application/json' );
$req->content( to_json($json) );