Skip to content

Commit

Permalink
fixup! feat(rooms): add option to automatically lock public and group…
Browse files Browse the repository at this point in the history
… rooms if they are inactive
  • Loading branch information
Anna Larch committed Nov 19, 2024
1 parent 8fd49d8 commit 83c0eb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ public function getInactiveRooms(\DateTime $inactiveSince): array {
->andWhere($query->expr()->lte('r.last_activity', $query->createNamedParameter($inactiveSince, IQueryBuilder::PARAM_DATETIME_MUTABLE)))
->andWhere($query->expr()->neq('r.read_only', $query->createNamedParameter(Room::READ_ONLY, IQueryBuilder::PARAM_INT)))
->andWhere($query->expr()->in('r.type', $query->createNamedParameter([Room::TYPE_PUBLIC, Room::TYPE_GROUP], IQueryBuilder::PARAM_INT_ARRAY)))
->andWhere($query->expr()->emptyString('remoteServer'))
->orderBy('r.id', 'ASC');
$result = $query->executeQuery();

Expand Down

0 comments on commit 83c0eb8

Please sign in to comment.