회의 참석자 초대 API 수정

This commit is contained in:
cyjadela 2025-10-24 14:57:46 +09:00
parent 906c9c507e
commit e74087e811
2 changed files with 1025 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -114,7 +114,13 @@ public class Meeting {
public void addParticipant(String participantEmail) {
if (this.participants == null) {
this.participants = new ArrayList<>();
} else if (!(this.participants instanceof ArrayList)) {
// 불변 리스트인 경우 새로운 ArrayList로 변환
this.participants = new ArrayList<>(this.participants);
}
if (!this.participants.contains(participantEmail)) {
this.participants.add(participantEmail);
}
this.participants.add(participantEmail);
}
}