//only sync when a group is a certain type and this type is configured that you want to sync it
if ((syncBuddy && isBuddy) || (syncLearn && isLearn)) {
String groupID = InstantMessagingModule.getAdapter().createChatRoomString(group);
String groupDisplayName = group.getName();
//course group enrolment is time critial so we move this in an separate thread and catch all failures
TaskExecutorManager.getInstance().runTask(new SyncSingleUserTask(ureqIdentity, groupID, groupDisplayName, identity));
}
}
}
}