Skip to content

Commit

Permalink
A missed call is only when there was only 1 user
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Nov 19, 2021
1 parent bab0320 commit 7647eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Activity/Listener.php
Original file line number Diff line number Diff line change
@@ -135,7 +135,7 @@ public function generateCallActivity(Room $room, bool $endForEveryone = false, ?
$message = 'call_ended';
if ($endForEveryone) {
$message = 'call_ended_everyone';
} elseif ($room->getType() === Room::TYPE_ONE_TO_ONE) {
} elseif ($room->getType() === Room::TYPE_ONE_TO_ONE && \count($userIds) === 1) {
$message = 'call_missed';
}

0 comments on commit 7647eae

Please sign in to comment.