diff options
author | Joas Schilling <coding@schilljs.com> | 2017-11-16 11:51:30 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-11-17 14:37:27 +0300 |
commit | 1fc4e370f7791ae556c9d7c41561df491a275f06 (patch) | |
tree | 25f7178842c6620e5da90b8bc131d40ea4519b5f /lib/Activity | |
parent | 8b10c79df418d05b0da534601d6a703b26036b97 (diff) |
Fix call activity
Regression from "Split joining a room from call"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Activity')
-rw-r--r-- | lib/Activity/Hooks.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Activity/Hooks.php b/lib/Activity/Hooks.php index b852fdc82..949d5ed3a 100644 --- a/lib/Activity/Hooks.php +++ b/lib/Activity/Hooks.php @@ -59,10 +59,9 @@ class Hooks { * Mark the user as (in)active for a call * * @param Room $room - * @param bool $isGuest */ - public function setActive(Room $room, $isGuest) { - $room->setActiveSince(new \DateTime(), $isGuest); + public function setActive(Room $room) { + $room->setActiveSince(new \DateTime(), !$this->userSession->isLoggedIn()); } /** @@ -73,7 +72,7 @@ class Hooks { */ public function generateCallActivity(Room $room) { $activeSince = $room->getActiveSince(); - if (!$activeSince instanceof \DateTime || $room->hasActiveSessions()) { + if (!$activeSince instanceof \DateTime || $room->hasSessionsInCall()) { return false; } |