Merge pull request #31079 from nextcloud/ignore-self-contact-interaction

Ignore contact interaction with self
This commit is contained in:
Vincent Petry 2022-02-10 17:50:54 +01:00 committed by GitHub
commit d29293e019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,11 @@ class ContactInteractionListener implements IEventListener {
return;
}
if ($event->getUid() !== null && $event->getUid() === $event->getActor()->getUID()) {
$this->logger->info("Ignoring contact interaction with self");
return;
}
$existing = $this->mapper->findMatch(
$event->getActor(),
$event->getUid(),