Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-11-16 11:17:15 +0300
committerJoas Schilling <coding@schilljs.com>2021-11-16 11:17:15 +0300
commitda20f4bbfeb369a823288a5af5dac3756f57ee6f (patch)
tree7b1f13f647b2d4b39e99771e4fe8328fb822aa4e /lib
parent1491f9d27d8e8cc22acd84cb83387c1d6c83a828 (diff)
Always print a message for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Activity/Listener.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/Activity/Listener.php b/lib/Activity/Listener.php
index d38bda37d..5228befde 100644
--- a/lib/Activity/Listener.php
+++ b/lib/Activity/Listener.php
@@ -133,15 +133,10 @@ class Listener {
$numGuests = $this->participantService->getGuestCount($room, $activeSince);
$message = 'call_ended';
- if ((\count($userIds) + $numGuests) === 1) {
- if ($room->getType() !== Room::TYPE_ONE_TO_ONE) {
- // Single user pinged or guests only => no summary/activity
- $room->resetActiveSince();
- return false;
- }
- $message = 'call_missed';
- } elseif ($endForEveryone) {
+ if ($endForEveryone) {
$message = 'call_ended_everyone';
+ } elseif ($room->getType() === Room::TYPE_ONE_TO_ONE) {
+ $message = 'call_missed';
}
if (!$room->resetActiveSince()) {