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
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-08 09:56:31 +0300
committerJoas Schilling <coding@schilljs.com>2021-10-11 17:26:08 +0300
commit879a2b7d6924e5c603f83109162e8874aa929647 (patch)
tree6fb3900ff2d97b5932273128ca7095dadf232baf /lib/Service
parent0c379ce84611f6a1c464c8d44ee96dd476621fcc (diff)
Only get users that want the call notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ParticipantService.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php
index 8cd742d18..ec808618b 100644
--- a/lib/Service/ParticipantService.php
+++ b/lib/Service/ParticipantService.php
@@ -1235,7 +1235,7 @@ class ParticipantService {
* @param Room $room
* @return string[]
*/
- public function getParticipantUserIdsNotInCall(Room $room): array {
+ public function getParticipantUserIdsForCallNotifications(Room $room): array {
$query = $this->connection->getQueryBuilder();
$query->select('a.actor_id')
@@ -1250,6 +1250,7 @@ class ParticipantService {
)
->where($query->expr()->eq('a.room_id', $query->createNamedParameter($room->getId(), IQueryBuilder::PARAM_INT)))
->andWhere($query->expr()->eq('a.actor_type', $query->createNamedParameter(Attendee::ACTOR_USERS)))
+ ->andWhere($query->expr()->eq('a.notification_calls', $query->createNamedParameter(Participant::NOTIFY_CALLS_ON)))
->andWhere($query->expr()->isNull('s.in_call'));
$userIds = [];