diff options
author | Joas Schilling <coding@schilljs.com> | 2018-11-09 16:14:57 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-11-12 13:35:31 +0300 |
commit | 4afa2d7946f121d07610eeb0165b20ee135fb819 (patch) | |
tree | fe1bd72a5b3772752445355e4fa43766ca715dcf /lib/Activity | |
parent | 5448a59d40061f71a279a427b8100079dafc1ecc (diff) |
Do not create the participant when we don't need them
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Activity')
-rw-r--r-- | lib/Activity/Hooks.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Activity/Hooks.php b/lib/Activity/Hooks.php index ac3be3046..9e7f119a7 100644 --- a/lib/Activity/Hooks.php +++ b/lib/Activity/Hooks.php @@ -77,8 +77,7 @@ class Hooks { } $duration = $this->timeFactory->getTime() - $activeSince->getTimestamp(); - $participants = $room->getParticipants($activeSince->getTimestamp()); - $userIds = array_map('\strval', array_keys($participants['users'])); + $userIds = $room->getParticipantUserIds($activeSince->getTimestamp()); if (empty($userIds) || (\count($userIds) === 1 && $room->getActiveGuests() === 0)) { // Single user pinged or guests only => no activity |