From: Jonas Date: Tue, 12 Jul 2022 12:13:36 +0000 (+0100) Subject: Fix listening for circle events in SetupManager X-Git-Tag: v24.0.4rc1~32^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=786317e1cb8f56398031bd04e83568a825d2b97f;p=nextcloud-server.git Fix listening for circle events in SetupManager So far, SetupManager listened for deprecated events that are no longer triggered. Instead, use the circle events that actually get triggered when adding or removing a circle or circle member. Also, these events get triggered on each instance of a globalscale setup. Fixes: #33210 Signed-off-by: Jonas --- diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 78b81ee7bba..07b4e5a5018 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -554,10 +554,10 @@ class SetupManager { }); $genericEvents = [ - '\OCA\Circles::onCircleCreation', - '\OCA\Circles::onCircleDestruction', - '\OCA\Circles::onMemberNew', - '\OCA\Circles::onMemberLeaving', + 'OCA\Circles\Events\CreatingCircleEvent', + 'OCA\Circles\Events\DestroyingCircleEvent', + 'OCA\Circles\Events\AddingCircleMemberEvent', + 'OCA\Circles\Events\RemovingCircleMemberEvent', ]; foreach ($genericEvents as $genericEvent) {