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
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-11-09 16:14:57 +0300
committerJoas Schilling <coding@schilljs.com>2018-11-12 13:35:31 +0300
commit4afa2d7946f121d07610eeb0165b20ee135fb819 (patch)
treefe1bd72a5b3772752445355e4fa43766ca715dcf /lib/Activity
parent5448a59d40061f71a279a427b8100079dafc1ecc (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.php3
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