diff options
author | Joas Schilling <coding@schilljs.com> | 2021-09-29 16:50:25 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-09-30 12:48:46 +0300 |
commit | abbc510f6b3133477548de88647a27d8b6cd0cc8 (patch) | |
tree | cc433713ae3914a1548abb23aad7ff7cc5589401 /lib/Service | |
parent | 6446e93b88defde19ea3f9f532a46180ee0a4ca6 (diff) |
Ignore sessions older than 30 seconds on notifications again
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r-- | lib/Service/ParticipantService.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 89dd94106..15276a6af 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -773,7 +773,7 @@ class ParticipantService { ->leftJoin('s', 'talk_attendees', 'a', $query->expr()->eq('s.attendee_id', 'a.id')) ->where($query->expr()->eq('a.room_id', $query->createNamedParameter($room->getId(), IQueryBuilder::PARAM_INT))) ->andWhere($query->expr()->eq('a.actor_type', $query->createNamedParameter(Attendee::ACTOR_GUESTS))) - ->andWhere($query->expr()->lte('s.last_ping', $query->createNamedParameter($this->timeFactory->getTime() - 100, IQueryBuilder::PARAM_INT))); + ->andWhere($query->expr()->lte('s.last_ping', $query->createNamedParameter($this->timeFactory->getTime() - Session::SESSION_TIMEOUT_KILL, IQueryBuilder::PARAM_INT))); $sessionTableIds = []; $result = $query->execute(); @@ -1149,6 +1149,7 @@ class ParticipantService { $query->expr()->andX( $query->expr()->eq('s.attendee_id', 'a.id'), $query->expr()->neq('s.in_call', $query->createNamedParameter(Participant::FLAG_DISCONNECTED)), + $query->expr()->gte('s.last_ping', $query->createNamedParameter($this->timeFactory->getTime() - Session::SESSION_TIMEOUT, IQueryBuilder::PARAM_INT)), ) ) ->where($query->expr()->eq('a.room_id', $query->createNamedParameter($room->getId(), IQueryBuilder::PARAM_INT))) |