diff options
author | Joas Schilling <coding@schilljs.com> | 2020-09-25 11:50:04 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-12-10 11:47:04 +0100 |
commit | 4ebae32362d081c144717c58d4549e22aabb683e (patch) | |
tree | f6754757d82a1f6eaf2e5ef81a37cf58c2deeb33 /lib/TInitialState.php | |
parent | b672400bf05ecb9f4ed05538b1ccaeb8aea2d668 (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.php | 10 |
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', '' ); |