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/Model
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-10-25 13:22:08 +0300
committerGitHub <noreply@github.com>2021-10-25 13:22:08 +0300
commit351c3090c073a7208c830447ac7807bf916d2718 (patch)
tree7a74b1948080a349968ad8adfa77908a99d76bdf /lib/Model
parent00269d075ef38cc25d0cfca5364854264a0332b3 (diff)
parent730a18416b3db0c86ebe8daff0a90eaef651d278 (diff)
Merge pull request #6338 from nextcloud/feature/noid/allow-to-opt-out-of-call-notifications
Allow to opt out of call notifications
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/Attendee.php7
-rw-r--r--lib/Model/AttendeeMapper.php1
-rw-r--r--lib/Model/SelectHelper.php1
3 files changed, 9 insertions, 0 deletions
diff --git a/lib/Model/Attendee.php b/lib/Model/Attendee.php
index d61800c1e..32c03f666 100644
--- a/lib/Model/Attendee.php
+++ b/lib/Model/Attendee.php
@@ -41,6 +41,8 @@ use OCP\AppFramework\Db\Entity;
* @method bool isFavorite()
* @method void setNotificationLevel(int $notificationLevel)
* @method int getNotificationLevel()
+ * @method void setNotificationCalls(int $notificationCalls)
+ * @method int getNotificationCalls()
* @method void setLastJoinedCall(int $lastJoinedCall)
* @method int getLastJoinedCall()
* @method void setLastReadMessage(int $lastReadMessage)
@@ -115,6 +117,9 @@ class Attendee extends Entity {
protected $notificationLevel;
/** @var int */
+ protected $notificationCalls;
+
+ /** @var int */
protected $lastJoinedCall;
/** @var int */
@@ -147,6 +152,7 @@ class Attendee extends Entity {
$this->addType('participantType', 'int');
$this->addType('favorite', 'bool');
$this->addType('notificationLevel', 'int');
+ $this->addType('notificationCalls', 'int');
$this->addType('lastJoinedCall', 'int');
$this->addType('lastReadMessage', 'int');
$this->addType('lastMentionMessage', 'int');
@@ -175,6 +181,7 @@ class Attendee extends Entity {
'participant_type' => $this->getParticipantType(),
'favorite' => $this->isFavorite(),
'notification_level' => $this->getNotificationLevel(),
+ 'notification_calls' => $this->getNotificationCalls(),
'last_joined_call' => $this->getLastJoinedCall(),
'last_read_message' => $this->getLastReadMessage(),
'last_mention_message' => $this->getLastMentionMessage(),
diff --git a/lib/Model/AttendeeMapper.php b/lib/Model/AttendeeMapper.php
index b8f2a74ba..bf1344d8d 100644
--- a/lib/Model/AttendeeMapper.php
+++ b/lib/Model/AttendeeMapper.php
@@ -287,6 +287,7 @@ class AttendeeMapper extends QBMapper {
'participant_type' => (int) $row['participant_type'],
'favorite' => (bool) $row['favorite'],
'notification_level' => (int) $row['notification_level'],
+ 'notification_calls' => (int) $row['notification_calls'],
'last_joined_call' => (int) $row['last_joined_call'],
'last_read_message' => (int) $row['last_read_message'],
'last_mention_message' => (int) $row['last_mention_message'],
diff --git a/lib/Model/SelectHelper.php b/lib/Model/SelectHelper.php
index 4ef5fec4f..3b2d81ce3 100644
--- a/lib/Model/SelectHelper.php
+++ b/lib/Model/SelectHelper.php
@@ -68,6 +68,7 @@ class SelectHelper {
->addSelect($alias . 'participant_type')
->addSelect($alias . 'favorite')
->addSelect($alias . 'notification_level')
+ ->addSelect($alias . 'notification_calls')
->addSelect($alias . 'last_joined_call')
->addSelect($alias . 'last_read_message')
->addSelect($alias . 'last_mention_message')