fssa-batch3 / fssa-batch3/sec_a_susikumar.pitchaimuthu__corejava_project_2
Chat Module | Delete Feature
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
User Story
As a user, you should be able to delete your chat message with a valid message ID and user ID. First, check whether the message ID is present or not. If it is present, check the message ID associated with the user ID. If the message ID is invalid, the error message will be "Invalid message ID." If the user ID is invalid, the error message will be "Invalid user ID." If both are valid, the message will be deleted.
### DAO:
- [x] deleteChat()
### Service:
- [x] deleteChat()
### Service Tests:
- [x] testDeleteChatSuccess()
## Flow
```mermaid
graph TD
A[Start]
B(Check if message ID is valid)
C[(Check if user ID is associated with message ID)]
D(Delete the message)
E(Invalid message ID details)
F(Invalid user ID for the chat)
G(Store Chat details)
A -->|User ID, Message ID| B
B -->|Valid| C
B -->|Invalid| E
C -->|Associated| D
C -->|Not Associated| F
D -->|Message Deleted| G --> END
F -->|Invalid User ID| END
E -->|Invalid Message ID| END
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.