# Users on same course can send a chat message

## Description:

Users can send a chat message (plain text) to any other user that they have permission to see (teachers and students can see those who are part of their courses by default). The recipient can reply to the message. Messages/replies are delivered instantly when the app is open. Note: Messages are only delivered if the app is open and notifications are not displayed.

## Step-by-Step Procedure:

1. Login as admin.
2. Click on "Courses."
3. Click on the "+ Course" button.
4. Click on the "Add a new course" button.
5. Enter a course name.
6. Click on the "Description" field.
7. New text block appears.
8. Enter the description.
9. Click on the "Done" button.
10. Click "Save" button to save the course.
11. Click on the "Courses"
12. Click on the course name.
13. Click on the "Members" tab.
14. Click on the "Add a teacher" button
15. Click on "Add a new person" button
16. Enter the teacher's first name, last name and Gender.
17. Click on the "Save" button and save the person details.
18. Click on the "Save" button to save the enrollment details.
19. Click on the teacher name.
20. Click on the "View profile" button.
21. Click on the "Create account" button.
22. Enter the username.
23. Enter the password.
24. Click on the "Save button"
25. Click on "People".
26. Click on "+ Person" button.
27. Click on "Bulk import" button.
28. Click on "Select file" button.
29. Select the csv file.
30. Click on "Import"
31. Verify the import success message.
32.  Clear the app storage 
33. Login to the app using the teacher username and password. 
34. Click on "Messages" tab at bottom 
35. Click on "+ Message" button 
36. Select a student from student list. 
37. Enter message in "Message" tab 
38. Click on "Send" icon. 
39. Verify the message is visible. 
40. Clear the app storage 
41. Login to the app using the student username and password.
42. Click on "Messages" tab at bottom
43. Verify student able to see message from teacher
44. Click on teacher name to open the message
45. Verify user able to see the message from teacher with date and time.
46. Enter message in "Message" tab to reply 
47. Click on "Send" icon.
48. Clear the app storage 
49. Login to the app using the teacher username and password. 
50. Click on "Messages" tab at bottom 
51. Verify teacher able to see reply message from the student.