Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64275

Some unread counts do not update without a page refresh

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a site with a course and 3 users enrolled in that course
      2. Create 2 groups in that course with group messaging enabled
      3. Add all 3 users to both groups
      4. Log in as user 1
      5. Open the message drawer
      6. Send a few messages to user 2 and user 3
      7. Send a few messages in both of the group conversations
      8. Log in as user 2
      9. Send a few messages to user 3
      10. Send a few messages in both of the group conversations
      11. Log in as user 3
      12. Open the message drawer
        • Note: from this point on do not reload the page
      13. CONFIRM that there is a little notification badge inline with the "Group messages" and "Messages" header. The notification badges should each have a 2 in them (i.e. there are 2 group conversations that container unread messages and there are 2 private conversations that have unread messages)
      14. Expand the "Group messages" section (if it isn't already)
      15. Click on one of the group conversations to view it
      16. Click the back icon (<) at the top left of the message drawer to go back to the main page
      17. CONFIRM that the notification badge next to "Group messages" is still visible but now it shows "1" instead of "2" (because you read one of the group conversations).
      18. Click on the other group conversation (the one that still has unread messages)
      19. Click the back icon (<) at the top left of the message drawer to go back to the main page
      20. CONFIRM that the notification badge next to "Group messages" is no longer showing (since you don't have any unread group conversations)
      21. Repeat the testing above but for the "Messages" section. The unread conversation count should behave the same way as described above as you view each conversation.
      Show
      Create a site with a course and 3 users enrolled in that course Create 2 groups in that course with group messaging enabled Add all 3 users to both groups Log in as user 1 Open the message drawer Send a few messages to user 2 and user 3 Send a few messages in both of the group conversations Log in as user 2 Send a few messages to user 3 Send a few messages in both of the group conversations Log in as user 3 Open the message drawer Note: from this point on do not reload the page CONFIRM that there is a little notification badge inline with the "Group messages" and "Messages" header. The notification badges should each have a 2 in them (i.e. there are 2 group conversations that container unread messages and there are 2 private conversations that have unread messages) Expand the "Group messages" section (if it isn't already) Click on one of the group conversations to view it Click the back icon (<) at the top left of the message drawer to go back to the main page CONFIRM that the notification badge next to "Group messages" is still visible but now it shows "1" instead of "2" (because you read one of the group conversations). Click on the other group conversation (the one that still has unread messages) Click the back icon (<) at the top left of the message drawer to go back to the main page CONFIRM that the notification badge next to "Group messages" is no longer showing (since you don't have any unread group conversations) Repeat the testing above but for the "Messages" section. The unread conversation count should behave the same way as described above as you view each conversation.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
      MDL-64275-master

      Description

      Immediately after accepting a contact request, or opening an unread message, the count of unread messages does not decrement (though the message is marked as read).

      For example, the below conversation with Nino has been read, but upon returning to the list of messages, the unread count (with the blue background) still shows 1 unread message. This disappears after the page is refreshed.

        Attachments

        1. MDL-64275.PNG
          60 kB
          Anna Carissa Sadia
        2. unread_count_not_updated.png
          11 kB
          Michael Hawkins

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Jan/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m