diff options
author | Joas Schilling <coding@schilljs.com> | 2024-03-12 16:05:37 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-03-12 16:51:22 +0100 |
commit | 697d3cc2b8eff364cc5789d26525c9256d9a80c9 (patch) | |
tree | cae0e5f6bdcd130ed860aee7a11f87b68e038edc /lib | |
parent | 4ee56ad62043e791d2eca2459c15d49e5a405c57 (diff) |
fix(federation): Don't notify ourselves when we leave
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/ParticipantService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 7ea81e69c..5060e8040 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -835,7 +835,7 @@ class ParticipantService { * @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()); |