mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Integration with Talk. You can save a message as a note to remind yourself.
This commit is contained in:
@@ -34,6 +34,7 @@ use OCP\IURLGenerator;
|
||||
use OCP\IServerContainer;
|
||||
|
||||
use OCA\QuickNotes\Search\NoteSearchProvider;
|
||||
use OCA\QuickNotes\Listeners\BeforeTemplateRenderedListener;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\QuickNotes\AppInfo;
|
||||
|
||||
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;
|
||||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
||||
class BeforeTemplateRenderedListener implements IEventListener {
|
||||
|
||||
public function handle(Event $event): void {
|
||||
|
||||
if (!($event instanceof BeforeTemplateRenderedEvent)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$event->isLoggedIn()) {
|
||||
return;
|
||||
}
|
||||
|
||||
\OCP\Util::addStyle('quicknotes', 'global');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user