Skip to content

Commit

Permalink
Merge pull request #14460 from nextcloud/bugfix/noid/missed-call-on-e…
Browse files Browse the repository at this point in the history
…nd-for-everyone

fix(call): Show "Missed call" in one-to-one also when "End for everyo…
  • Loading branch information
nickvergessen authored Feb 21, 2025
2 parents 204af55 + b6842d8 commit 8818675
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 8818675

Please sign in to comment.