aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/KnownUser/KnownUserService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/KnownUser/KnownUserService.php')
-rw-r--r--lib/private/KnownUser/KnownUserService.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/KnownUser/KnownUserService.php b/lib/private/KnownUser/KnownUserService.php
index 96af21c836f..1f300a9f8e4 100644
--- a/lib/private/KnownUser/KnownUserService.php
+++ b/lib/private/KnownUser/KnownUserService.php
@@ -74,6 +74,10 @@ class KnownUserService {
* @return bool
*/
public function isKnownToUser(string $knownTo, string $contactUserId): bool {
+ if ($knownTo === $contactUserId) {
+ return true;
+ }
+
if (!isset($this->knownUsers[$knownTo])) {
$entities = $this->mapper->getKnownUsers($knownTo);
$this->knownUsers[$knownTo] = [];