Remove chat close wrapper
This commit is contained in:
@@ -194,11 +194,6 @@ public class ChatService {
|
|||||||
return ConversationResponse.fromEntity(conversation, lastMessage);
|
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) {
|
public List<MessageResponse> getMessages(Long conversationId, Long userId, User.Role role) {
|
||||||
Conversation conversation = conversationRepository.findById(conversationId)
|
Conversation conversation = conversationRepository.findById(conversationId)
|
||||||
.orElseThrow(() -> new ResourceNotFoundException("Conversation not found"));
|
.orElseThrow(() -> new ResourceNotFoundException("Conversation not found"));
|
||||||
|
|||||||
Reference in New Issue
Block a user