From 8f46ca1706108294086ec7eb040b4f0922204b38 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 13 Dec 2022 17:39:52 +0100 Subject: Add app config to specify default attachment folder location Signed-off-by: Thomas Citharel --- lib/Config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Config.php b/lib/Config.php index e153098ac..9f63cec65 100644 --- a/lib/Config.php +++ b/lib/Config.php @@ -186,7 +186,8 @@ class Config { } public function getAttachmentFolder(string $userId): string { - return $this->config->getUserValue($userId, 'spreed', 'attachment_folder', '/Talk'); + $defaultAttachmentFolder = $this->config->getAppValue('spreed', 'default_attachment_folder', '/Talk'); + return $this->config->getUserValue($userId, 'spreed', 'attachment_folder', $defaultAttachmentFolder); } /** -- cgit v1.2.3