Skip to content

Commit

Permalink
Merge pull request #14467 from nextcloud/backport/14460/stable31
Browse files Browse the repository at this point in the history
[stable31] fix(call): Show "Missed call" in one-to-one also when "End for everyo…
  • Loading branch information
nickvergessen authored Feb 21, 2025
2 parents c2a94e6 + 64fb2aa commit 11bf781
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Activity/Listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11bf781

Please sign in to comment.