Skip to content

Commit

Permalink
fixup! Fix: move state init to a service
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
  • Loading branch information
hamza221 committed Jul 3, 2024
1 parent 0969dcb commit 732580e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/Listener/CalendarReferenceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

use OCA\Calendar\AppInfo\Application;
use OCA\Calendar\Service\CalendarInitialStateService;

use OCP\Collaboration\Reference\RenderReferenceEvent;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
Expand Down
3 changes: 0 additions & 3 deletions lib/Service/CalendarInitialStateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ public function __construct(
$this->appManager = $appManager;
$this->compareVersion = $compareVersion;
$this->userId = $userId;

}


public function run(): void {
$defaultEventLimit = $this->config->getAppValue($this->appName, 'eventLimit', 'yes');
$defaultInitialView = $this->config->getAppValue($this->appName, 'currentView', 'dayGridMonth');
Expand Down Expand Up @@ -103,7 +101,6 @@ public function run(): void {
$this->initialStateService->provideInitialState('publicCalendars', $publicCalendars);
}


/**
* Makes sure we don't use the old views anymore
*
Expand Down

0 comments on commit 732580e

Please sign in to comment.