mirror of
https://github.com/hwanny1128/HGZero.git
synced 2026-06-13 10:39:11 +00:00
회의 참석자 초대 API 수정
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -114,7 +114,13 @@ public class Meeting {
|
|||||||
public void addParticipant(String participantEmail) {
|
public void addParticipant(String participantEmail) {
|
||||||
if (this.participants == null) {
|
if (this.participants == null) {
|
||||||
this.participants = new ArrayList<>();
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user