Skip to content

Commit

Permalink
fix: switch parameters to view conversation by convo id
Browse files Browse the repository at this point in the history
  • Loading branch information
becooq81 committed Jul 22, 2024
1 parent fb4ac66 commit 3e92162
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public MessageResponse getMessageResponseById(Member member, Long messageId) {

@Transactional(readOnly = true)
public List<MessageResponse> findMessageResponsesByConversationId(Member member, String conversationId) {
List<Message> messageList = messageRepository.findAllByConversationID(conversationId);
Conversation conversation = conversationService.findConversationById(member.getLoginID(), conversationId);
Conversation conversation = conversationService.findConversationById(conversationId, member.getLoginID());
List<Message> messageList = messageRepository.findAllByConversationId(conversationId);
conversationService.checkWhetherInvolved(conversation, member.getLoginID());
return messageList.stream()
.filter(message -> !message.isDeleted())
Expand Down

0 comments on commit 3e92162

Please sign in to comment.