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:
authorJoas Schilling <coding@schilljs.com>2022-09-12 17:09:02 +0300
committerJoas Schilling <coding@schilljs.com>2022-09-12 17:09:02 +0300
commit85e691de6566ff7f9e30a45ba674c9c89ac70983 (patch)
tree652fd5187a8ba498ffea01329745f4fd686b8a81 /lib
parent15c14c3fd93610eca372602674b62e8ac35f26ba (diff)
Dispatch reference rendering event
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PageController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index e869eae95..dbf2bb366 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -45,6 +45,7 @@ use OCP\AppFramework\Http\Response;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\Template\PublicTemplateResponse;
use OCP\AppFramework\Services\IInitialState;
+use OCP\Collaboration\Reference\RenderReferenceEvent;
use OCP\EventDispatcher\GenericEvent;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\IRootFolder;
@@ -268,6 +269,8 @@ class PageController extends Controller {
}
$this->eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent());
+ $this->eventDispatcher->dispatchTyped(new RenderReferenceEvent());
+
$response = new TemplateResponse($this->appName, 'index', [
'app' => Application::APP_ID,
'id-app-content' => '#app-content-vue',
@@ -344,6 +347,7 @@ class PageController extends Controller {
}
$this->publishInitialStateForGuest();
+ $this->eventDispatcher->dispatchTyped(new RenderReferenceEvent());
$response = new PublicTemplateResponse($this->appName, 'index', [
'id-app-content' => '#app-content-vue',