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>2020-10-29 12:01:29 +0300
committerJoas Schilling <coding@schilljs.com>2020-10-30 12:38:52 +0300
commitb010a1fed964dfa312a006ea66fda00421787b89 (patch)
treea271c0f084ddc3872c1f6722ebb154193e88835a /lib/Service
parenta1cabcf75a645c9070e13d6b7ef7150de9ef46bd (diff)
last_joined_call is not a timestamp not a date field
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ParticipantService.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index de47f1e49..7a22a20e1 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -516,7 +516,11 @@ class ParticipantService {
* @return string[]
*/
public function getParticipantUserIds(Room $room, \DateTime $maxLastJoined = null): array {
- $attendees = $this->attendeeMapper->getActorsByType($room->getId(), 'users', $maxLastJoined);
+ $maxLastJoinedTimestamp = null;
+ if ($maxLastJoined !== null) {
+ $maxLastJoinedTimestamp = $maxLastJoined->getTimestamp();
+ }
+ $attendees = $this->attendeeMapper->getActorsByType($room->getId(), 'users', $maxLastJoinedTimestamp);
return array_map(static function (Attendee $attendee) {
return $attendee->getActorId();