]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix listening for circle events in SetupManager 33212/head
authorJonas <jonas@freesources.org>
Tue, 12 Jul 2022 12:13:36 +0000 (13:13 +0100)
committerJonas <jonas@freesources.org>
Mon, 18 Jul 2022 20:09:37 +0000 (21:09 +0100)
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 <jonas@freesources.org>
lib/private/Files/SetupManager.php

index 78b81ee7bbab3d29850a39293420480104c8b369..07b4e5a50181c1e9e36a1b58016508f8b6326083 100644 (file)
@@ -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) {