diff options
author | Joas Schilling <coding@schilljs.com> | 2023-05-11 08:47:23 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-05-11 13:56:54 +0200 |
commit | 80b96cfca84de6d37dd8bc4a91d9ed8a95af7ec3 (patch) | |
tree | 16ed7d37a5fd198c66d2dd88900ba2f80222da28 /lib | |
parent | 0b82954cc8bd04e2c7e4c14e6ea448df00ec70eb (diff) |
fix(participants): Don't emit the _AFTER event when no guests were removed
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/ParticipantService.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 8486e14de..62b8c9a02 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -1022,6 +1022,10 @@ class ParticipantService { } $result->closeCursor(); + if (empty($attendeeIds)) { + return; + } + $this->attendeeMapper->deleteByIds($attendeeIds); $attendeeEvent = new AttendeesRemovedEvent($room, $attendees); |