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:
Diffstat (limited to 'lib/Collaboration')
-rw-r--r--lib/Collaboration/Resources/Listener.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Collaboration/Resources/Listener.php b/lib/Collaboration/Resources/Listener.php
index 57f8be678..35aeb511c 100644
--- a/lib/Collaboration/Resources/Listener.php
+++ b/lib/Collaboration/Resources/Listener.php
@@ -28,6 +28,7 @@ use OCA\Talk\Events\RemoveParticipantEvent;
use OCA\Talk\Events\RemoveUserEvent;
use OCA\Talk\Events\RoomEvent;
use OCA\Talk\GuestManager;
+use OCA\Talk\Model\Attendee;
use OCA\Talk\Room;
use OCP\Collaboration\Resources\IManager;
use OCP\Collaboration\Resources\ResourceException;
@@ -65,8 +66,8 @@ class Listener {
$participants = $event->getParticipants();
foreach ($participants as $participant) {
$user = null;
- if ($participant['userId'] !== '') {
- $user = $userManager->get($participant['userId']);
+ if ($participant['actorType'] === Attendee::ACTOR_USERS) {
+ $user = $userManager->get($participant['actorId']);
}
$resourceManager->invalidateAccessCacheForResourceByUser($resource, $user);