UPSTREAM BASELINE: nextcloud/spreed v22.0.12 (без изменений)
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Источник: https://github.com/nextcloud/spreed/archive/refs/tags/v22.0.12.tar.gz С этого коммита ветка официального Nextcloud Talk отрезана (решение владельца 2026-07-06). Все дальнейшие изменения — только наши; версии релизов: 22.0.12-f7.N.
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Talk\SetupCheck;
|
||||
|
||||
use OCP\App\IAppManager;
|
||||
use OCP\IL10N;
|
||||
use OCP\SetupCheck\ISetupCheck;
|
||||
use OCP\SetupCheck\SetupResult;
|
||||
|
||||
class NotifyPush implements ISetupCheck {
|
||||
|
||||
public function __construct(
|
||||
protected IL10N $l10n,
|
||||
protected IAppManager $appManager,
|
||||
) {
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getName(): string {
|
||||
return $this->l10n->t('Client Push'); // TRANSLATORS: this is the app name of the notify_push app.
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function getCategory(): string {
|
||||
return 'talk';
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public function run(): SetupResult {
|
||||
if ($this->appManager->isEnabledForAnyone('notify_push')) {
|
||||
return SetupResult::success(
|
||||
$this->l10n->t('Client Push is installed, this improves the performance of desktop clients.')
|
||||
);
|
||||
}
|
||||
|
||||
return SetupResult::warning(
|
||||
$this->l10n->t('{notify_push} is not installed, this might lead to performance issues when using desktop clients.'),
|
||||
'https://github.com/nextcloud/notify_push/blob/main/README.md',
|
||||
[
|
||||
'notify_push' => [
|
||||
'id' => 'notify_push',
|
||||
'name' => $this->getName(),
|
||||
'type' => 'app',
|
||||
],
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user