mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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:
parent
24349b9130
commit
d8e5d7af10
1 changed files with 5 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue