mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
fix(instant-meetings): Expose retention period for instant meetings
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7271dcc0d9
commit
4e4da8bad7
4 changed files with 7 additions and 0 deletions
|
|
@ -185,6 +185,7 @@
|
|||
* `important-conversations` (local) - Whether important conversations are supported
|
||||
* `unbind-conversation` (local) - Whether the API exists to make an event and phone conversation persistent
|
||||
* `config => conversations => retention-event` (local) - Number of days before an inactive event conversation is deleted (`0` = disabled)
|
||||
* `config => conversations => retention-instant-meetings` (local) - Number of days before an instant meeting conversation is deleted (`0` = disabled)
|
||||
* `config => conversations => retention-phone` (local) - Number of days before an inactive incoming or outgoing phone conversation is deleted (`0` = disabled)
|
||||
* `config => call => predefined-backgrounds-v2` (local) - Whether virtual backgrounds should be read from the theming directory
|
||||
* `dashboard-event-rooms` (local) - Whether Talk APIs offer functionality for Dashboard requests
|
||||
|
|
|
|||
|
|
@ -261,6 +261,7 @@ class Capabilities implements IPublicCapability {
|
|||
'description-length' => Room::DESCRIPTION_MAXIMUM_LENGTH,
|
||||
'retention-event' => max(0, $this->appConfig->getAppValueInt('retention_event_rooms', 28)),
|
||||
'retention-phone' => max(0, $this->appConfig->getAppValueInt('retention_phone_rooms', 7)),
|
||||
'retention-instant-meetings' => max(0, $this->appConfig->getAppValueInt('retention_instant_meetings', 1)),
|
||||
],
|
||||
'federation' => [
|
||||
'enabled' => false,
|
||||
|
|
|
|||
|
|
@ -484,6 +484,7 @@ namespace OCA\Talk;
|
|||
* description-length: positive-int,
|
||||
* retention-event: non-negative-int,
|
||||
* retention-phone: non-negative-int,
|
||||
* retention-instant-meetings: non-negative-int,
|
||||
* },
|
||||
* federation: array{
|
||||
* enabled: bool,
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ class CapabilitiesTest extends TestCase {
|
|||
['max_call_duration', 0, 0],
|
||||
['retention_event_rooms', 28, 28],
|
||||
['retention_phone_rooms', 7, 7],
|
||||
['retention_instant_meetings', 1, 1],
|
||||
]);
|
||||
|
||||
$this->assertInstanceOf(IPublicCapability::class, $capabilities);
|
||||
|
|
@ -180,6 +181,7 @@ class CapabilitiesTest extends TestCase {
|
|||
'description-length' => 2000,
|
||||
'retention-event' => 28,
|
||||
'retention-phone' => 7,
|
||||
'retention-instant-meetings' => 1,
|
||||
],
|
||||
'federation' => [
|
||||
'enabled' => false,
|
||||
|
|
@ -277,6 +279,7 @@ class CapabilitiesTest extends TestCase {
|
|||
['max_call_duration', 0, 0],
|
||||
['retention_event_rooms', 28, 28],
|
||||
['retention_phone_rooms', 7, 7],
|
||||
['retention_instant_meetings', 1, 1],
|
||||
]);
|
||||
|
||||
$this->assertInstanceOf(IPublicCapability::class, $capabilities);
|
||||
|
|
@ -346,6 +349,7 @@ class CapabilitiesTest extends TestCase {
|
|||
'description-length' => 2000,
|
||||
'retention-event' => 28,
|
||||
'retention-phone' => 7,
|
||||
'retention-instant-meetings' => 1,
|
||||
],
|
||||
'federation' => [
|
||||
'enabled' => false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue