changeConferenceInfo method
void
changeConferenceInfo(
- TUIConferenceInfo conferenceInfo,
- List<
TUIConferenceModifyFlag> modifyFlagList
Implementation
void changeConferenceInfo(TUIConferenceInfo conferenceInfo,
List<TUIConferenceModifyFlag> modifyFlagList) {
DateTime? dateToRemove;
TUIConferenceInfo? conferenceToRemove;
groupedConferences.value.forEach((date, conferences) {
for (var conference in conferences) {
if (conference.basicRoomInfo.roomId ==
conferenceInfo.basicRoomInfo.roomId) {
if (modifyFlagList
.contains(TUIConferenceModifyFlag.scheduleStartTime) ||
modifyFlagList
.contains(TUIConferenceModifyFlag.scheduleEndTime)) {
dateToRemove = date;
conferenceToRemove = conference;
break;
}
if (modifyFlagList.contains(TUIConferenceModifyFlag.roomName)) {
conference.basicRoomInfo.name = conferenceInfo.basicRoomInfo.name;
}
break;
}
}
});
if (dateToRemove != null && conferenceToRemove != null) {
_removeConferenceInfo(dateToRemove!, conferenceToRemove!);
addConference(conferenceInfo);
}
groupedConferences.refresh();
}