diff options
author | Joas Schilling <coding@schilljs.com> | 2019-03-20 18:44:34 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-03-20 18:44:34 +0300 |
commit | b2dc9603e3bc709368fed1d4bedf0b88e9bae483 (patch) | |
tree | 60e402d80445a2d02b36baa03f649e335a4f88c5 /lib/Notification | |
parent | 91e98848b55fafc0814e374cbe9113167cf19f9a (diff) |
Don't send a notification when inviting a user because he was mentioned
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Notification')
-rw-r--r-- | lib/Notification/Listener.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Notification/Listener.php b/lib/Notification/Listener.php index c9cec226a..f98b3f8c8 100644 --- a/lib/Notification/Listener.php +++ b/lib/Notification/Listener.php @@ -57,6 +57,10 @@ class Listener { /** @var Room $room */ $room = $event->getSubject(); + if ($room->getObjectType() === 'file') { + return; + } + /** @var self $listener */ $listener = \OC::$server->query(self::class); $listener->generateInvitation($room, $event->getArgument('users')); |