diff options
author | Joas Schilling <coding@schilljs.com> | 2021-06-02 10:21:32 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-08-24 17:55:33 +0300 |
commit | af402b95c85c762a92e2ea1e5f7630a6f0729fc0 (patch) | |
tree | 06013156366731dd8d0ceb403f48a9be50c28e32 /lib/AppInfo | |
parent | 7accfeef9853fff1f73d69df1925bf111278d69f (diff) |
Handle the AddingCircleMemberEvent and add new members to the rooms
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/AppInfo')
-rw-r--r-- | lib/AppInfo/Application.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index e062e11b2..43fb3fbef 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -23,8 +23,13 @@ declare(strict_types=1); namespace OCA\Talk\AppInfo; +use OCA\Circles\Events\AddingCircleMemberEvent; use OCA\Circles\Events\CircleDestroyedEvent; use OCA\Circles\Events\CircleMemberAddedEvent; +use OCA\Circles\Events\CircleMemberRemovedEvent; +use OCA\Circles\Events\MembershipsCreatedEvent; +use OCA\Circles\Events\MembershipsRemovedEvent; +use OCA\Circles\Events\RemovingCircleMemberEvent; use OCA\Files_Sharing\Event\BeforeTemplateRenderedEvent; use OCA\Talk\Activity\Listener as ActivityListener; use OCA\Talk\Capabilities; @@ -120,6 +125,8 @@ class Application extends App implements IBootstrap { $context->registerEventListener(AttendeesRemovedEvent::class, SystemMessageListener::class); $context->registerEventListener(CircleDestroyedEvent::class, CircleDeletedListener::class); + $context->registerEventListener(AddingCircleMemberEvent::class, CircleMembershipListener::class); + $context->registerEventListener(RemovingCircleMemberEvent::class, CircleMembershipListener::class); $context->registerSearchProvider(ConversationSearch::class); $context->registerSearchProvider(CurrentMessageSearch::class); |