From 7b3760356daaf8329002a6b585f02aa39d7a62ff Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 16 Dec 2020 11:04:37 +0100 Subject: [PATCH 1/3] Updated wording and interaction for conversation accessibility Signed-off-by: Vincent Petry --- docs/chat.md | 6 +- lib/Chat/Parser/SystemMessage.php | 18 ++-- .../ConversationSettings/ListableSettings.vue | 102 +++++++++++------- tests/php/Chat/Parser/SystemMessageTest.php | 12 +-- 4 files changed, 84 insertions(+), 54 deletions(-) diff --git a/docs/chat.md b/docs/chat.md index d03cdac17..aa5510c42 100644 --- a/docs/chat.md +++ b/docs/chat.md @@ -161,9 +161,9 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1` * `call_ended` - Call with {user1}, {user2}, {user3}, {user4} and {user5} (Duration 30:23) * `read_only_off` - {actor} unlocked the conversation * `read_only` - {actor} locked the conversation -* `listable_none` - {actor} made the conversation visible for nobody -* `listable_users` - {actor} made the conversation visible for regular users -* `listable_all` - {actor} made the conversation visible for everone which includes users and guests +* `listable_none` - {actor} made the conversation accessible to participants +* `listable_users` - {actor} made the conversation accessible to regular users +* `listable_all` - {actor} made the conversation accessible to everone which includes users and guests * `lobby_timer_reached` - The conversation is now open to everyone * `lobby_none` - {actor} opened the conversation to everyone * `lobby_non_moderators` - {actor} restricted the conversation to moderators diff --git a/lib/Chat/Parser/SystemMessage.php b/lib/Chat/Parser/SystemMessage.php index 9633b957e..ba3bd9291 100644 --- a/lib/Chat/Parser/SystemMessage.php +++ b/lib/Chat/Parser/SystemMessage.php @@ -166,25 +166,25 @@ class SystemMessage { $parsedMessage = $this->l->t('An administrator locked the conversation'); } } elseif ($message === 'listable_none') { - $parsedMessage = $this->l->t('{actor} made the conversation invisible'); + $parsedMessage = $this->l->t('{actor} made the conversation accessible to participants'); if ($currentUserIsActor) { - $parsedMessage = $this->l->t('You made the conversation invisible'); + $parsedMessage = $this->l->t('You made the conversation accessible to participants'); } elseif ($cliIsActor) { - $parsedMessage = $this->l->t('An administrator made the conversation invisible'); + $parsedMessage = $this->l->t('An administrator made the conversation accessible to participants'); } } elseif ($message === 'listable_users') { - $parsedMessage = $this->l->t('{actor} made the conversation visible for registered users only'); + $parsedMessage = $this->l->t('{actor} made the conversation accessible to registered users only'); if ($currentUserIsActor) { - $parsedMessage = $this->l->t('You made the conversation visible for registered users only'); + $parsedMessage = $this->l->t('You made the conversation accessible to registered users only'); } elseif ($cliIsActor) { - $parsedMessage = $this->l->t('An administrator made the visible for registered users only'); + $parsedMessage = $this->l->t('An administrator made the accessible to registered users only'); } } elseif ($message === 'listable_all') { - $parsedMessage = $this->l->t('{actor} made the conversation visible for everyone'); + $parsedMessage = $this->l->t('{actor} made the conversation accessible to everyone'); if ($currentUserIsActor) { - $parsedMessage = $this->l->t('You made the conversation visible for everyone'); + $parsedMessage = $this->l->t('You made the conversation accessible to everyone'); } elseif ($cliIsActor) { - $parsedMessage = $this->l->t('An administrator made the conversation visible for everyone'); + $parsedMessage = $this->l->t('An administrator made the conversation accessible to everyone'); } } elseif ($message === 'lobby_timer_reached') { $parsedMessage = $this->l->t('The conversation is now open to everyone'); diff --git a/src/components/ConversationSettings/ListableSettings.vue b/src/components/ConversationSettings/ListableSettings.vue index cd11dbcdb..d44fb7a5a 100644 --- a/src/components/ConversationSettings/ListableSettings.vue +++ b/src/components/ConversationSettings/ListableSettings.vue @@ -21,42 +21,42 @@