The following to works for me…
Call the calendar with a group param:
$args = array( 'group' => bp_get_current_group_id() );
em_calendar( $args );
and make sure it gets passed through all the default search filters:
function my_calendar_get_default_search( $args, $args2, $args3 ) {
if ( isset( $args2['group'] ) ) {
// pass value onwards
$args['group'] = $args2['group'];
}
return $args;
}
add_filter( 'em_calendar_get_default_search', 'my_calendar_get_default_search', 10, 3 );
add_filter( 'em_events_get_default_search', 'my_calendar_get_default_search', 10, 3 );