diff options
Diffstat (limited to 'lib/Chat')
-rw-r--r-- | lib/Chat/Parser/SystemMessage.php | 8 | ||||
-rw-r--r-- | lib/Chat/SystemMessage/Listener.php | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/lib/Chat/Parser/SystemMessage.php b/lib/Chat/Parser/SystemMessage.php index 48e9fa1f6..02e1f6b26 100644 --- a/lib/Chat/Parser/SystemMessage.php +++ b/lib/Chat/Parser/SystemMessage.php @@ -165,12 +165,12 @@ class SystemMessage { } elseif ($cliIsActor) { $parsedMessage = $this->l->t('An administrator locked the conversation'); } - } elseif ($message === 'listable_participants') { - $parsedMessage = $this->l->t('{actor} made the conversation listable for participants only'); + } elseif ($message === 'listable_none') { + $parsedMessage = $this->l->t('{actor} made the conversation not listable'); if ($currentUserIsActor) { - $parsedMessage = $this->l->t('You made the conversation listable for participants only'); + $parsedMessage = $this->l->t('You made the conversation not listable'); } elseif ($cliIsActor) { - $parsedMessage = $this->l->t('An administrator made the conversation listable for participants only'); + $parsedMessage = $this->l->t('An administrator made the conversation not listable'); } } elseif ($message === 'listable_users') { $parsedMessage = $this->l->t('{actor} made the conversation listable for users only'); 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) { |