Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Ignore contact interaction with self
No need to insert ourselves as a recent contact

Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed Feb 9, 2022
commit c47c0b90d9e5c99d72301b42bf02bf1e8fce6470
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public function handle(Event $event): void {
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(),
Expand Down