зеркало из https://github.com/nextcloud/spreed.git
Fix flow notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
9a288a52b6
Коммит
6d162dc025
|
@ -310,7 +310,7 @@ class Notifier {
|
|||
* @return bool
|
||||
*/
|
||||
private function shouldUserBeNotified($userId, IComment $comment): bool {
|
||||
if ($userId === $comment->getActorId()) {
|
||||
if ($comment->getActorType() === 'users' && $userId === $comment->getActorId()) {
|
||||
// Do not notify the user if they mentioned themselves
|
||||
return false;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче