Skip to content

Commit

Permalink
Mark "Talk" active on /call/token URLs
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 8, 2019
1 parent 9fe4b95 commit 284d218
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ public function beforeController($controller, $methodName) {
// for normal HTML requests and not for AJAX requests
$this->navigationManager->setActiveEntry($this->appName);

// @suppress PhanUndeclared
if ($controller === \OCA\Talk\Controller\PageController::class && $methodName === 'showCall') {
$this->navigationManager->setActiveEntry('spreed');
}

// security checks
$isPublicPage = $this->reflector->hasAnnotation('PublicPage');
if(!$isPublicPage) {
Expand Down

0 comments on commit 284d218

Please sign in to comment.