Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-09-25 12:50:04 +0300
committerJoas Schilling <coding@schilljs.com>2020-12-10 13:47:04 +0300
commit4ebae32362d081c144717c58d4549e22aabb683e (patch)
treef6754757d82a1f6eaf2e5ef81a37cf58c2deeb33 /lib/TInitialState.php
parentb672400bf05ecb9f4ed05538b1ccaeb8aea2d668 (diff)
Introduce a privacy settings for the read_status
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/TInitialState.php')
-rw-r--r--lib/TInitialState.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/TInitialState.php b/lib/TInitialState.php
index 5b771d50f..583f821f6 100644
--- a/lib/TInitialState.php
+++ b/lib/TInitialState.php
@@ -87,6 +87,11 @@ trait TInitialState {
$appManager->isEnabledForUser('circles', $user)
);
+ $this->initialStateService->provideInitialState(
+ 'talk', 'read_status_privacy',
+ $this->serverConfig->getUserValue($user->getUID(), 'spreed', 'read_status_privacy', Participant::PRIVACY_PUBLIC)
+ );
+
$attachmentFolder = $this->talkConfig->getAttachmentFolder($user->getUID());
if ($attachmentFolder) {
@@ -128,6 +133,11 @@ trait TInitialState {
);
$this->initialStateService->provideInitialState(
+ 'talk', 'read_status_privacy',
+ Participant::PRIVACY_PUBLIC
+ );
+
+ $this->initialStateService->provideInitialState(
'talk', 'attachment_folder',
''
);