diff --git a/src/main/java/com/mallangs/domain/chat/dto/response/ChatRoomResponse.java b/src/main/java/com/mallangs/domain/chat/dto/response/ChatRoomResponse.java index fb1609e..9f442f9 100644 --- a/src/main/java/com/mallangs/domain/chat/dto/response/ChatRoomResponse.java +++ b/src/main/java/com/mallangs/domain/chat/dto/response/ChatRoomResponse.java @@ -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; } } diff --git a/src/main/java/com/mallangs/domain/chat/service/ChatMessageService.java b/src/main/java/com/mallangs/domain/chat/service/ChatMessageService.java index 3237b9a..8691611 100644 --- a/src/main/java/com/mallangs/domain/chat/service/ChatMessageService.java +++ b/src/main/java/com/mallangs/domain/chat/service/ChatMessageService.java @@ -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(); }