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

The number of unread messages is incorrectly updated.

XMLWordPrintable

    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76404-401
    • MDL-76404-master
    • Hide

      Scenario 1

      • Go to any of the sites with moodle 4.0 installed
      • Go to an existing course
      • Enrol 3 users (student role).
      • Log in as "student1”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student3”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student2”
        • Go to Messages
        • You should see “2” unread messages in Private Message
        • Go to one of the conversations, and quickly go to another chat with unread messages. 

      Expected behavior

      When reading a message, the number of unread messages should be updated, without the need to Reload the site.

      Scenario 2

      • Go to any of the sites with moodle 4.0 installed
      • Go to an existing course
      • Enrol 3 users (student role).
      • Log in as "student1”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student3”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student2”
        • Go to Messages
        • You should see “2” unread messages in Private Message
        • Read one of the messages and check if it changes the number of unread messages to 1
        • Reload the page
        • Enter the previously read conversation, notice how the number of messages in the Private section decreases, even though the chat has already been read.

      Expected behavior

      When entering a previously read chat, the number of unread should be kept according to the conversations.

      Scenario 3

      • Go to any of the sites with moodle 4.0 installed
      • Go to an existing course
      • Enrol 3 users (student role).
      • Log in as "student1”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student3”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student2”
        • Go to Messages
        • You should see “2” unread messages in Private Message
        • Read one of the messages and check
        • Notice how the number of unread messages in the private section decreases to 1
        • Without reloading the page, wait for a while, you will see how automatically the value of unread messages decreases to 0, even without having read the second conversation. 

      Expected behavior

      The number of unread messages in the section should be maintained based on the number of conversations that appear as unread.

      Show
      Scenario 1 Go to any of the sites with moodle 4.0 installed Go to an existing course Enrol 3 users (student role). Log in as "student1” Go to Messages Send "Hi!" message in the message area to “student2” Log in as "student3” Go to Messages Send "Hi!" message in the message area to “student2” Log in as "student2” Go to Messages You should see “ 2 ” unread messages in Private Message Go to one of the conversations, and quickly go to another chat with unread messages.  Expected behavior When reading a message, the number of unread messages should be updated, without the need to Reload the site. Scenario 2 Go to any of the sites with moodle 4.0 installed Go to an existing course Enrol 3 users (student role). Log in as "student1” Go to Messages Send "Hi!" message in the message area to “student2” Log in as "student3” Go to Messages Send "Hi!" message in the message area to “student2” Log in as "student2” Go to Messages You should see “ 2 ” unread messages in Private Message Read one of the messages and check if it changes the number of unread messages to 1 Reload the page Enter the previously read conversation, notice how the number of messages in the Private section decreases, even though the chat has already been read. Expected behavior When entering a previously read chat, the number of unread should be kept according to the conversations. Scenario 3 Go to any of the sites with moodle 4.0 installed Go to an existing course Enrol 3 users (student role). Log in as "student1” Go to Messages Send "Hi!" message in the message area to “student2” Log in as "student3” Go to Messages Send "Hi!" message in the message area to “student2” Log in as "student2” Go to Messages You should see “ 2 ” unread messages in Private Message Read one of the messages and check Notice how the number of unread messages in the private section decreases to 1 Without reloading the page, wait for a while, you will see how automatically the value of unread messages decreases to 0, even without having read the second conversation.  Expected behavior The number of unread messages in the section should be maintained based on the number of conversations that appear as unread.

      In Messages, the number of unread messages in the messages section is not updated as it should.

      Note: Check the attached videos for each scenario.

      Steps to reproduce Scenario 1

      • Go to any of the sites with moodle 4.0 installed
      • Go to an existing course
      • Enrol 3 users (student role).
      • Log in as "student1”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student3”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student2”
        • Go to Messages
        • You should see “2” unread messages in Private Message
        • Go to one of the conversations, and quickly go to another chat with unread messages. 

      Current behavior

      The number of unread messages is not updating correctly.

      Expected behavior

      When reading a message, the number of unread messages should be updated, without the need to Reload the site.

       

      Steps to reproduce Scenario 2

      • Go to any of the sites with moodle 4.0 installed
      • Go to an existing course
      • Enrol 3 users (student role).
      • Log in as "student1”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student3”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student2”
        • Go to Messages
        • You should see “2” unread messages in Private Message
        • Read one of the messages and check if it changes the number of unread messages to 1
        • Reload the page
        • Enter the previously read conversation, notice how the number of messages in the Private section decreases, even though the chat has already been read.

      Current behavior

      The number of unread messages is not updating correctly.

      Expected behavior

      When entering a previously read chat, the number of unread should be kept according to the conversations.

       

      Steps to reproduce Scenario 3

      • Go to any of the sites with moodle 4.0 installed
      • Go to an existing course
      • Enrol 3 users (student role).
      • Log in as "student1”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student3”
        • Go to Messages
        • Send "Hi!" message in the message area to “student2”
      • Log in as "student2”
        • Go to Messages
        • You should see “2” unread messages in Private Message
        • Read one of the messages and check
        • Notice how the number of unread messages in the private section decreases to 1
        • Without reloading the page, wait for a while, you will see how automatically the value of unread messages decreases to 0, even without having read the second conversation. 

      Current behavior

      The number of unread messages is not updating correctly.

      Expected behavior

      The number of unread messages in the section should be maintained based on the number of conversations that appear as unread.

        1. Scenario3.mov
          1.93 MB
        2. Scenario2.mov
          1.03 MB
        3. Scenario1.mov
          1.33 MB

            Unassigned Unassigned
            thebryanopen228 Bryan Cruz
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.