spreed/lib/ConfigLexicon.php
Joas Schilling c0d534fd4e
feat(splitview): Define user setting and capability
Signed-off-by: Joas Schilling <coding@schilljs.com>
2025-11-17 13:08:35 +01:00

37 lines
833 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Talk;
use OCA\Talk\Settings\UserPreference;
use OCP\Config\Lexicon\Entry;
use OCP\Config\Lexicon\ILexicon;
use OCP\Config\Lexicon\Strictness;
use OCP\Config\ValueType;
class ConfigLexicon implements ILexicon {
#[\Override]
public function getStrictness(): Strictness {
// Ignore for now as we only start
return Strictness::IGNORE;
}
#[\Override]
public function getAppConfigs(): array {
return [
];
}
#[\Override]
public function getUserConfigs(): array {
return [
new Entry(UserPreference::PLAY_SOUNDS, ValueType::BOOL, true),
new Entry(UserPreference::CHAT_STYLE, ValueType::STRING, UserPreference::CHAT_STYLE_SPLIT),
];
}
}