Skip to content

Commit

Permalink
Merge pull request #244 from prgrms-web-devcourse-final-project/feature/
Browse files Browse the repository at this point in the history
#234-AI-prompt-추가

채팅방 코드 수정 - 참여 채팅방 조회시 chatRoomId 반환
  • Loading branch information
Dom1046 authored Dec 26, 2024
2 parents 49ed50e + e6756d5 commit 20f1112
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ public class ChatRoomResponse {
private String chatRoomName;
private String memberNickname;
private Long memberId;
private Long chatRoomId;
private Integer changedIsRead;

@Builder
public ChatRoomResponse(String chatRoomName, String memberNickname, Long memberId, Integer changedIsRead) {
public ChatRoomResponse(String chatRoomName, String memberNickname, Long memberId, Integer changedIsRead, Long chatRoomId) {
this.chatRoomName = chatRoomName;
this.memberNickname = memberNickname;
this.memberId = memberId;
this.chatRoomId = chatRoomId;
this.changedIsRead = changedIsRead;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public ChatRoomResponse changeUnReadToRead(Long profileMemberId, Long myId) {
.chatRoomName(foundPartRoom.getRoomName())
.memberNickname(foundPartRoom.getParticipant().getNickname().getValue())
.memberId(foundPartRoom.getParticipant().getMemberId())
.chatRoomId(foundPartRoom.getChatRoom().getChatRoomId())
.changedIsRead(numChanged)
.build();
}
Expand Down

0 comments on commit 20f1112

Please sign in to comment.