dont notify about mention to current user

This commit is contained in:
Yuri Kuznetsov
2014-11-26 16:29:47 +02:00
parent f4c57046dd
commit 6a036595d6

View File

@@ -69,6 +69,9 @@ class Mentions extends \Espo\Core\Hooks\Base
);
$mentionData->$item = (object) $m;
if (!in_array($item, $previousMentionList)) {
if ($user->id == $this->getUser()->id) {
continue;
}
$this->notifyAboutMention($entity, $user);
}
}