Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-02-17 15:01:57 +0300
committerVitor Mattos <vitor@php.rio>2022-02-18 17:28:34 +0300
commitcff8f018bc5b8f15f69462d562e84275d5cc2dd6 (patch)
tree901980050ac2b6e0f7201dbfef10492e97afa482 /lib
parent4080f6d0905c60741c5acfcfd976e8d4cb226cdc (diff)
Remove unused app config
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib')
-rw-r--r--lib/BackgroundJob/CheckHostedSignalingServer.php2
-rw-r--r--lib/Migration/Version14000Date20220217115327.php49
2 files changed, 49 insertions, 2 deletions
diff --git a/lib/BackgroundJob/CheckHostedSignalingServer.php b/lib/BackgroundJob/CheckHostedSignalingServer.php
index 4d0671679..256dcd9d2 100644
--- a/lib/BackgroundJob/CheckHostedSignalingServer.php
+++ b/lib/BackgroundJob/CheckHostedSignalingServer.php
@@ -145,8 +145,6 @@ class CheckHostedSignalingServer extends TimedJob {
$this->config->setAppValue('spreed', 'hosted-signaling-server-account', json_encode($accountInfo));
}
- $this->config->setAppValue('spreed', 'hosted-signaling-server-account-last-checked', $this->time->getTime());
-
if (!is_null($notificationSubject)) {
$this->logger->info('Hosted signaling server background job caused a notification: ' . $notificationSubject . ' ' . json_encode($notificationParameters));
diff --git a/lib/Migration/Version14000Date20220217115327.php b/lib/Migration/Version14000Date20220217115327.php
new file mode 100644
index 000000000..7a37254f4
--- /dev/null
+++ b/lib/Migration/Version14000Date20220217115327.php
@@ -0,0 +1,49 @@
+<?php
+
+declare(strict_types=1);
+/**
+ * @copyright Copyright (c) 2022, Vitor Mattos <vitor@php.rio>
+ *
+ * @author Vitor Mattos <vitor@php.rio>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+namespace OCA\Talk\Migration;
+
+use Closure;
+use OCP\IConfig;
+use OCP\Migration\IOutput;
+use OCP\Migration\SimpleMigrationStep;
+
+class Version14000Date20220217115327 extends SimpleMigrationStep {
+
+ /** @var IConfig */
+ protected $config;
+
+ public function __construct(IConfig $config) {
+ $this->config = $config;
+ }
+
+ /**
+ * @param IOutput $output
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @param array $options
+ */
+ public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
+ $this->config->deleteAppValue('spreed', 'hosted-signaling-server-account-last-checked');
+ }
+}