From 88747b16a72336ed4fc6f6c26666729fa42e25a4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 20 Feb 2025 15:33:43 +0100 Subject: [PATCH] fix(call): Show "Missed call" in one-to-one also when "End for everyone" was used Signed-off-by: Joas Schilling --- lib/Activity/Listener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {