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:
Diffstat (limited to 'lib/Service/ParticipantService.php')
-rw-r--r--lib/Service/ParticipantService.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index 6e1d99588..6c515f9e2 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -706,6 +706,20 @@ class ParticipantService {
/**
* @param Room $room
+ * @param \DateTime|null $maxLastJoined
+ * @return int
+ */
+ public function getGuestCount(Room $room, \DateTime $maxLastJoined = null): int {
+ $maxLastJoinedTimestamp = null;
+ if ($maxLastJoined !== null) {
+ $maxLastJoinedTimestamp = $maxLastJoined->getTimestamp();
+ }
+
+ return $this->attendeeMapper->getActorsCountByType($room->getId(), Attendee::ACTOR_GUESTS, $maxLastJoinedTimestamp);
+ }
+
+ /**
+ * @param Room $room
* @return string[]
*/
public function getParticipantUserIdsNotInCall(Room $room): array {