Skip to content

Conversation

@provokateurin
Copy link
Member

No description provided.

Copy link
Member

@ArtificialOwl ArtificialOwl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

listening on CircleMemberAddedEvent and CircleMemberRemovedEvent might be better

@provokateurin
Copy link
Member Author

Needs adjustment for nextcloud/server#57564

@provokateurin provokateurin marked this pull request as draft January 15, 2026 09:44
foreach ($circle->getInheritedMembers() as $inheritedMember) {
// TODO: Send event for all members at once
// We already iterate the inherited members, so we don't need to recurse the member circles again
$this->emitShareAccessUpdateEvent($inheritedMember, ignoreCircles: true);
Copy link
Member Author

@provokateurin provokateurin Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of recursing this should just emit the events directly for Member::TYPE_USER (as users in groups are already expanded).

@icewind1991
Copy link
Member

icewind1991 commented Jan 15, 2026

I'm not seeing any sign of the event being emitted in my testing.

Either adding or removing a user from a circle doesn't trigger the event listener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants