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

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGretaD <gretadoci@gmail.com>2021-02-11 20:32:08 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-26 19:59:39 +0300
commit5677ea6d1a234060466c34b181bf86f9fd8b8200 (patch)
tree3edc34eaecfb04ff4917076c34d4ed8a8f57f779 /lib/Service
parent06842c1ad4fc1b73218d7a49b72343ce6ac92b48 (diff)
Add trusted domain
Signed-off-by: GretaD <gretadoci@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/TrustedSenderService.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Service/TrustedSenderService.php b/lib/Service/TrustedSenderService.php
index 8210be686..57cebbfa6 100644
--- a/lib/Service/TrustedSenderService.php
+++ b/lib/Service/TrustedSenderService.php
@@ -44,7 +44,7 @@ class TrustedSenderService implements ITrustedSenderService {
);
}
- public function trust(string $uid, string $email, ?bool $trust = true): void {
+ public function trust(string $uid, string $email, string $type, ?bool $trust = true): void {
if ($trust && $this->isTrusted($uid, $email)) {
// Nothing to do
return;
@@ -53,12 +53,14 @@ class TrustedSenderService implements ITrustedSenderService {
if ($trust) {
$this->mapper->create(
$uid,
- $email
+ $email,
+ $type
);
} else {
$this->mapper->remove(
$uid,
- $email
+ $email,
+ $type
);
}
}