-
-
- {{ t('spreed', 'Open conversation to registered users, showing it in search results') }}
-
-
-
-
-
- {{ t('spreed', 'Also open to guest app users') }}
-
-
-
+
+
+ {{ t('spreed', 'Open conversation to registered users, showing it in search results') }}
+
+
+ {{ t('spreed', 'Also open to users created with the Guests app') }}
+
+
+
+
+
+ {{ t('spreed', 'Open conversation') }}
+
+
{{ summaryLabel }}
@@ -63,6 +66,11 @@ export default {
default: null,
},
+ canFullModerate: {
+ type: Boolean,
+ default: true,
+ },
+
value: {
type: Number,
default: null,
@@ -85,12 +93,31 @@ export default {
conversation() {
return this.$store.getters.conversation(this.token) || this.$store.getters.dummyConversation
},
+
+ summaryLabel() {
+ switch (this.listable) {
+ case CONVERSATION.LISTABLE.ALL:
+ return t('spreed', 'This conversation is open to both registered users and users created with the Guests app')
+ case CONVERSATION.LISTABLE.USERS:
+ return t('spreed', 'This conversation is open to registered users')
+ case CONVERSATION.LISTABLE.NONE:
+ default:
+ return t('spreed', 'This conversation is limited to the current participants')
+ }
+ }
},
watch: {
value(value) {
this.listable = value
},
+
+ conversation: {
+ immediate: true,
+ handler() {
+ this.listable = this.conversation.listable
+ },
+ },
},
mounted() {
@@ -139,7 +166,7 @@ export default {
} else if (listable === CONVERSATION.LISTABLE.USERS) {
this.lastNotification = showSuccess(t('spreed', 'You opened the conversation to registered users'))
} else if (listable === CONVERSATION.LISTABLE.ALL) {
- this.lastNotification = showSuccess(t('spreed', 'You opened the conversation to registered and guest app users'))
+ this.lastNotification = showSuccess(t('spreed', 'You opened the conversation to both registered users and users created with the Guests app'))
}
this.listable = listable
} catch (e) {
@@ -153,3 +180,9 @@ export default {
}
+
+
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index b376f261686..8c8f865c4be 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -3024,7 +3024,7 @@ public function allowGuestAccountsCreation(): void {
$this->guestsAppWasEnabled = in_array('guests', $data['apps'], true);
if (!$this->guestsAppWasEnabled) {
- // enable guests app
+ // enable Guests app
/*
$this->sendRequest('POST', '/cloud/apps/guests');
$this->assertStatusCode($this->response, 200);
@@ -3070,7 +3070,7 @@ public function resetSpreedAppData() {
*/
public function resetGuestsAppState() {
if ($this->guestsAppWasEnabled === null) {
- // guests app was not touched
+ // Guests app was not touched
return;
}
diff --git a/tests/php/Chat/Parser/SystemMessageTest.php b/tests/php/Chat/Parser/SystemMessageTest.php
index 2710fdb6e69..4a0a2ee54c2 100644
--- a/tests/php/Chat/Parser/SystemMessageTest.php
+++ b/tests/php/Chat/Parser/SystemMessageTest.php
@@ -412,11 +412,11 @@ public static function dataParseMessage(): array {
['actor' => ['id' => 'actor', 'type' => 'user']],
],
['listable_all', [], 'recipient',
- '{actor} opened the conversation to registered and guest app users',
+ '{actor} opened the conversation to registered users and users created with the Guests app',
['actor' => ['id' => 'actor', 'type' => 'user']],
],
['listable_all', [], 'actor',
- 'You opened the conversation to registered and guest app users',
+ 'You opened the conversation to registered users and users created with the Guests app',
['actor' => ['id' => 'actor', 'type' => 'user']],
],
['object_shared', ['metaData' => ['id' => 'geo:52.5450511,13.3741463', 'type' => 'geo-location', 'name' => 'Nextcloud Berlin Office']], 'actor',