Browse Source
feat(conversations): Add "Important conversations" which still notify during DND
feat(conversations): Add "Important conversations" which still notify during DND
Signed-off-by: Joas Schilling <coding@schilljs.com>pull/14879/head
committed by
backportbot[bot]
14 changed files with 134 additions and 11 deletions
-
1docs/capabilities.md
-
2lib/Capabilities.php
-
34lib/Controller/RoomController.php
-
41lib/Migration/Version21001Date20250328123156.php
-
4lib/Model/Attendee.php
-
1lib/Model/AttendeeMapper.php
-
1lib/Model/SelectHelper.php
-
13lib/Notification/Listener.php
-
4lib/Notification/Notifier.php
-
2lib/ResponseDefinitions.php
-
32lib/Service/ParticipantService.php
-
2lib/Service/RoomFormatter.php
-
3tests/php/Chat/ChatManagerTest.php
-
5tests/php/Notification/NotifierTest.php
@ -0,0 +1,41 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
|
|||
/** |
|||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
namespace OCA\Talk\Migration; |
|||
|
|||
use Closure; |
|||
use OCP\DB\ISchemaWrapper; |
|||
use OCP\DB\Types; |
|||
use OCP\Migration\IOutput; |
|||
use OCP\Migration\SimpleMigrationStep; |
|||
|
|||
class Version21001Date20250328123156 extends SimpleMigrationStep { |
|||
|
|||
/** |
|||
* @param IOutput $output |
|||
* @param Closure(): ISchemaWrapper $schemaClosure |
|||
* @param array $options |
|||
* @return null|ISchemaWrapper |
|||
*/ |
|||
#[\Override]
|
|||
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|||
/** @var ISchemaWrapper $schema */ |
|||
$schema = $schemaClosure(); |
|||
|
|||
$table = $schema->getTable('talk_attendees'); |
|||
if (!$table->hasColumn('important')) { |
|||
$table->addColumn('important', Types::BOOLEAN, [ |
|||
'default' => 0, |
|||
'notnull' => false, |
|||
]); |
|||
} |
|||
|
|||
return $schema; |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue