perf(shares): Don't create share objects that we destroy later on again

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-08-04 21:12:32 +02:00
parent ab762a86f3
commit 915747bd57
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -831,6 +831,10 @@ class RoomShareProvider implements IShareProvider {
$cursor = $qb->executeQuery();
while ($data = $cursor->fetch()) {
if ($data['uid_initiator'] === $userId || $data['uid_owner'] === $userId) {
continue;
}
if (!$this->isAccessibleResult($data)) {
continue;
}