diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-29 12:01:29 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-30 12:38:52 +0300 |
commit | b010a1fed964dfa312a006ea66fda00421787b89 (patch) | |
tree | a271c0f084ddc3872c1f6722ebb154193e88835a /lib/Service | |
parent | a1cabcf75a645c9070e13d6b7ef7150de9ef46bd (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.php | 6 |
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(); |