Register nextcloud capabilities to check api versions..

<?xml version="1.0"?>
<ocs>
  ...
  <capabilities>
   ...
   <quicknotes>
    <version>0.6.0</version>
    <api_version>1.0</api_version>
   </quicknotes>
   ...
  </capabilities>
</ocs>
This commit is contained in:
Matias De lellis
2020-09-18 09:27:23 -03:00
parent 3807b83796
commit 959aa90f1a
3 changed files with 60 additions and 4 deletions

View File

@@ -55,11 +55,11 @@ class SettingsService {
public function getColorForNewNotes(): string {
return $this->config->getUserValue($this->userId, Application::APP_NAME, self::COLOR_FOR_NEW_NOTES_KEY, self::DEFAULT_COLOR_FOR_NEW_NOTES);
return $this->config->getUserValue($this->userId, Application::APP_ID, self::COLOR_FOR_NEW_NOTES_KEY, self::DEFAULT_COLOR_FOR_NEW_NOTES);
}
public function setColorForNewNotes(string $color) {
$this->config->setUserValue($this->userId, Application::APP_NAME, self::COLOR_FOR_NEW_NOTES_KEY, $color);
$this->config->setUserValue($this->userId, Application::APP_ID, self::COLOR_FOR_NEW_NOTES_KEY, $color);
}
}