From 697d3cc2b8eff364cc5789d26525c9256d9a80c9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 12 Mar 2024 16:05:37 +0100 Subject: [PATCH] fix(federation): Don't notify ourselves when we leave Signed-off-by: Joas Schilling --- lib/Service/ParticipantService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 7ea81e69c7e..5060e80401e 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -835,7 +835,7 @@ public function leaveRoomAsSession(Room $room, Participant $participant, bool $d * @psalm-param AAttendeeRemovedEvent::REASON_* $reason */ public function removeAttendee(Room $room, Participant $participant, string $reason, bool $attendeeEventIsTriggeredAlready = false): void { - if ($participant->getAttendee()->getActorType() === Attendee::ACTOR_FEDERATED_USERS) { + if ($participant->getAttendee()->getActorType() === Attendee::ACTOR_FEDERATED_USERS && $reason !== AAttendeeRemovedEvent::REASON_LEFT) { $attendee = $participant->getAttendee(); $cloudId = $this->cloudIdManager->resolveCloudId($attendee->getActorId());