Implement participantLeavesSharedFolder with passing tests.