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 committed by backportbot[bot]
parent 24349b9130
commit d8e5d7af10

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