Skip to content

Commit

Permalink
fixup! feat(calls): Add appconfig and user preference for default set…
Browse files Browse the repository at this point in the history
…ting of media
  • Loading branch information
nickvergessen committed Oct 8, 2024
1 parent a7c0f3b commit 3453115
Show file tree
Hide file tree
Showing 17 changed files with 53 additions and 8 deletions.
5 changes: 5 additions & 0 deletions lib/Settings/BeforePreferenceSetEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,28 @@

namespace OCA\Talk\Settings;

use OCA\Files_Sharing\SharedStorage;
use OCA\Talk\AppInfo\Application;
use OCA\Talk\Model\Attendee;
use OCA\Talk\Participant;
use OCA\Talk\Service\ParticipantService;
use OCP\Config\BeforePreferenceSetEvent;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Files\Folder;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use Psr\Log\LoggerInterface;

/**
* @template-implements IEventListener<Event>
*/
class BeforePreferenceSetEventListener implements IEventListener {
public function __construct(
protected IRootFolder $rootFolder,
protected ParticipantService $participantService,
protected LoggerInterface $logger,
) {
}

Expand Down
6 changes: 5 additions & 1 deletion openapi-administration.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -186,6 +187,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion openapi-backend-recording.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -119,6 +120,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion openapi-backend-signaling.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -119,6 +120,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion openapi-backend-sipbridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -162,6 +163,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion openapi-bots.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -119,6 +120,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion openapi-federation.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -162,6 +163,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -324,6 +325,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@
"can-upload-background",
"sip-enabled",
"sip-dialout-enabled",
"can-enable-sip"
"can-enable-sip",
"start-without-media"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -265,6 +266,9 @@
},
"can-enable-sip": {
"type": "boolean"
},
"start-without-media": {
"type": "boolean"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi-administration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi-backend-recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi-backend-signaling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi-backend-sipbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi-bots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi-federation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1882,6 +1882,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down
1 change: 1 addition & 0 deletions src/types/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,7 @@ export type components = {
"sip-enabled": boolean;
"sip-dialout-enabled": boolean;
"can-enable-sip": boolean;
"start-without-media": boolean;
};
chat: {
/** Format: int64 */
Expand Down

0 comments on commit 3453115

Please sign in to comment.