diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-26 13:27:50 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-26 13:27:50 +0300 |
commit | ea2d2a4fad2a14958334a70c60bd1e3a7fd4b94b (patch) | |
tree | f7b032011bd54eaa9fd54401783b99485c9de440 /lib/ContactsMenu/Providers | |
parent | 822ff12de632e5683e3a92ea4baf4b4d353ead41 (diff) |
Open one2one call when the user follows the link
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/ContactsMenu/Providers')
-rw-r--r-- | lib/ContactsMenu/Providers/CallProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ContactsMenu/Providers/CallProvider.php b/lib/ContactsMenu/Providers/CallProvider.php index 353c7e994..df889e1f4 100644 --- a/lib/ContactsMenu/Providers/CallProvider.php +++ b/lib/ContactsMenu/Providers/CallProvider.php @@ -65,13 +65,13 @@ class CallProvider implements IProvider { return; } - if ($entry->getProperty('isLocalSystemBook') === true) { + if ($entry->getProperty('isLocalSystemBook') !== true) { // Not internal user return; } $iconUrl = $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/video.svg')); - $callUrl = $this->urlGenerator->getAbsoluteURL('/index.php/apps/spreed/'); + $callUrl = $this->urlGenerator->linkToRouteAbsolute('spreed.page.index') . '?callUser=' . $uid; $action = $this->actionFactory->newLinkAction($iconUrl, $this->l10n->t('Video Call'), $callUrl); $entry->addAction($action); } |