Skip to content

Commit

Permalink
fixup! feat: add option to force passwords in public conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Nov 25, 2024
1 parent 145333d commit 69776d1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/Controller/RoomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function __construct(
protected Capabilities $capabilities,
protected FederationManager $federationManager,
protected BanService $banService,
protected IL10n $l10n,
) {
parent::__construct($appName, $request);
}
Expand Down
6 changes: 3 additions & 3 deletions openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -11260,7 +11260,7 @@
"password": {
"type": "string",
"default": "",
"description": "The room password"
"description": "The room password (only available with `conversation-creation-password` capability)"
}
}
}
Expand Down Expand Up @@ -11894,7 +11894,7 @@
"post": {
"operationId": "room-make-public",
"summary": "Allowed guests to join conversation",
"description": "Required capability: `conversation-creation-password`",
"description": "Required capability: `conversation-creation-password` for `string $password` parameter",
"tags": [
"room"
],
Expand All @@ -11916,7 +11916,7 @@
"password": {
"type": "string",
"default": "",
"description": "New password"
"description": "New password (only available with `conversation-creation-password` capability)"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -11147,7 +11147,7 @@
"password": {
"type": "string",
"default": "",
"description": "The room password"
"description": "The room password (only available with `conversation-creation-password` capability)"
}
}
}
Expand Down Expand Up @@ -12028,7 +12028,7 @@
"post": {
"operationId": "room-make-public",
"summary": "Allowed guests to join conversation",
"description": "Required capability: `conversation-creation-password`",
"description": "Required capability: `conversation-creation-password` for `string $password` parameter",
"tags": [
"room"
],
Expand All @@ -12050,7 +12050,7 @@
"password": {
"type": "string",
"default": "",
"description": "New password"
"description": "New password (only available with `conversation-creation-password` capability)"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ export type paths = {
put?: never;
/**
* Allowed guests to join conversation
* @description Required capability: `conversation-creation-password`
* @description Required capability: `conversation-creation-password` for `string $password` parameter
*/
post: operations["room-make-public"];
/** Disallowed guests to join conversation */
Expand Down Expand Up @@ -6199,7 +6199,7 @@ export interface operations {
*/
objectId?: string;
/**
* @description The room password
* @description The room password (only available with `conversation-creation-password` capability)
* @default
*/
password?: string;
Expand Down Expand Up @@ -6471,7 +6471,7 @@ export interface operations {
content: {
"application/json": {
/**
* @description New password
* @description New password (only available with `conversation-creation-password` capability)
* @default
*/
password?: string;
Expand Down
6 changes: 3 additions & 3 deletions src/types/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ export type paths = {
put?: never;
/**
* Allowed guests to join conversation
* @description Required capability: `conversation-creation-password`
* @description Required capability: `conversation-creation-password` for `string $password` parameter
*/
post: operations["room-make-public"];
/** Disallowed guests to join conversation */
Expand Down Expand Up @@ -5680,7 +5680,7 @@ export interface operations {
*/
objectId?: string;
/**
* @description The room password
* @description The room password (only available with `conversation-creation-password` capability)
* @default
*/
password?: string;
Expand Down Expand Up @@ -6052,7 +6052,7 @@ export interface operations {
content: {
"application/json": {
/**
* @description New password
* @description New password (only available with `conversation-creation-password` capability)
* @default
*/
password?: string;
Expand Down

0 comments on commit 69776d1

Please sign in to comment.