summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-11-28 19:29:08 +0100
committerGitHub <noreply@github.com>2022-11-28 19:29:08 +0100
commitc4157e4653e7bfa55f5c0fa2e82e12b5d120fa56 (patch)
tree8d54d5676f73a51725a91f02da0473bd6a7f9f58 /apps
parentcd7cec587ed7048b6a5536d69bce904f9eadc598 (diff)
parent7c4ceb444cb22f519cd30af5cd22304b960c8818 (diff)
downloadnextcloud-server-c4157e4653e7bfa55f5c0fa2e82e12b5d120fa56.tar.gz
nextcloud-server-c4157e4653e7bfa55f5c0fa2e82e12b5d120fa56.zip
Merge pull request #34941 from nextcloud/enh/33654/add-group-displayname-cache
Add a Group display name cache
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/AppInfo/Application.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php
index 63fdced9011..960d376c6d3 100644
--- a/apps/files_sharing/lib/AppInfo/Application.php
+++ b/apps/files_sharing/lib/AppInfo/Application.php
@@ -29,6 +29,7 @@
*/
namespace OCA\Files_Sharing\AppInfo;
+use OC\Group\DisplayNameCache as GroupDisplayNameCache;
use OC\Share\Share;
use OC\User\DisplayNameCache;
use OCA\Files_Sharing\Capabilities;
@@ -66,6 +67,7 @@ use OCP\Files\Config\IMountProviderCollection;
use OCP\Files\Events\BeforeDirectFileDownloadEvent;
use OCP\Files\Events\BeforeZipCreatedEvent;
use OCP\Files\IRootFolder;
+use OCP\Group\Events\GroupChangedEvent;
use OCP\Group\Events\UserAddedEvent;
use OCP\IDBConnection;
use OCP\IGroup;
@@ -108,6 +110,7 @@ class Application extends App implements IBootstrap {
$context->registerNotifierService(Notifier::class);
$context->registerEventListener(UserChangedEvent::class, DisplayNameCache::class);
+ $context->registerEventListener(GroupChangedEvent::class, GroupDisplayNameCache::class);
}
public function boot(IBootContext $context): void {