diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-12-02 15:55:24 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-12-11 20:15:48 +0300 |
commit | 65238d1b8f487596dc79b19fe6a6be3a4fb417be (patch) | |
tree | df44da5a069d248766065a21f66e76725c98b1eb /lib/Chat/SystemMessage/Listener.php | |
parent | 353206e1e695d531f2a51003ac93cfc3cd669bce (diff) |
Adjustments for listable rooms after review
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/Chat/SystemMessage/Listener.php')
-rw-r--r-- | lib/Chat/SystemMessage/Listener.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Chat/SystemMessage/Listener.php b/lib/Chat/SystemMessage/Listener.php index 3672aa25e..9642fcab8 100644 --- a/lib/Chat/SystemMessage/Listener.php +++ b/lib/Chat/SystemMessage/Listener.php @@ -179,15 +179,11 @@ class Listener { $dispatcher->addListener(Room::EVENT_AFTER_LISTABLE_SET, static function (ModifyRoomEvent $event) { $room = $event->getRoom(); - if ($room->getType() === Room::CHANGELOG_CONVERSATION) { - return; - } - /** @var self $listener */ $listener = \OC::$server->query(self::class); - if ($event->getNewValue() === Room::LISTABLE_PARTICIPANTS) { - $listener->sendSystemMessage($room, 'listable_participants'); + if ($event->getNewValue() === Room::LISTABLE_NONE) { + $listener->sendSystemMessage($room, 'listable_none'); } elseif ($event->getNewValue() === Room::LISTABLE_USERS) { $listener->sendSystemMessage($room, 'listable_users'); } elseif ($event->getNewValue() === Room::LISTABLE_ALL) { |