Closed takoyakimchi closed 1 month ago
// ChatRoom.removeMember() public void removeMember(Member member) { ChatRoomMember chatRoomMember = chatRoomMembers.stream() .filter(row -> row.hasMember(member)) .findAny() .orElseThrow(() -> new FriendoglyException("자신이 참여한 채팅방만 나갈 수 있습니다.")); chatRoomMembers.remove(chatRoomMember); }
요구 사항