diff --git a/lib/Activity/Listener.php b/lib/Activity/Listener.php index d7e5a8c0d84..fbfb5ff903a 100644 --- a/lib/Activity/Listener.php +++ b/lib/Activity/Listener.php @@ -73,10 +73,10 @@ protected function generateCallActivity(ACallEndedEvent $event): void { $numGuests += $this->participantService->getActorsCountByType($room, Attendee::ACTOR_EMAILS, $activeSince->getTimestamp()); $message = 'call_ended'; - if ($event instanceof CallEndedForEveryoneEvent) { - $message = 'call_ended_everyone'; - } elseif (($room->getType() === Room::TYPE_ONE_TO_ONE || $room->getType() === Room::TYPE_ONE_TO_ONE_FORMER) && \count($userIds) === 1) { + if (($room->getType() === Room::TYPE_ONE_TO_ONE || $room->getType() === Room::TYPE_ONE_TO_ONE_FORMER) && \count($userIds) === 1) { $message = 'call_missed'; + } elseif ($event instanceof CallEndedForEveryoneEvent) { + $message = 'call_ended_everyone'; } if ($actor instanceof Participant) {