Ignore contact interaction with self

No need to insert ourselves as a recent contact

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-02-09 09:43:57 +01:00
parent f4c719734a
commit c47c0b90d9
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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(),