Close chat #169

Closed
RecentRunner wants to merge 291 commits from close-chat into main
Showing only changes of commit 5d490d7d05 - Show all commits

View File

@@ -194,11 +194,6 @@ public class ChatService {
return ConversationResponse.fromEntity(conversation, lastMessage);
}
@Transactional
public ConversationResponse closeConversation(Long conversationId, Long userId, User.Role role) {
return updateConversation(conversationId, userId, role, new UpdateConversationRequest("CLOSED"));
}
public List<MessageResponse> getMessages(Long conversationId, Long userId, User.Role role) {
Conversation conversation = conversationRepository.findById(conversationId)
.orElseThrow(() -> new ResourceNotFoundException("Conversation not found"));