Skip to content

Commit 1a85aa0

Browse files
committed
feat: 채팅 메시지 목록 불러올 때 채팅 읽음 표시
Related to: #136
1 parent f4aa214 commit 1a85aa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/hf/healthfriend/domain/chat/service/ChatService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public List<ChatroomListResponseDto> getChatroomList(Long participantId,
8585
}
8686

8787
public ChatMessageListResponseDto getChatMessages(Long chatroomId, int page, int pageSize) {
88+
this.chatMessageRepository.readMessagesInChatroomByOpponent(chatroomId);
89+
8890
Page<ChatMessage> messages =
8991
this.chatMessageRepository.findByChatroomId(chatroomId, PageRequest.of(page - 1, pageSize));
9092
List<ChatMessageResponseDto> responseList =

0 commit comments

Comments
 (0)