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

Message: Orphaned unread messages when user deleted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.5
    • 1.9
    • Administration, Messages
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      If a user sends another user a message (for example a spammer on Moodle.org sending Matheu a message) and then that user is deleted before Mathieu reads the message, Mathieu continues to have the message window popup and has no way to indicate that he has read the message. In order to maintain the preservation of data for deleted users (in the case that the wrong user was deleted), I would suggest moving the unread messages (mdl_message) from a deleted user to the read mdl_message_read and setting the timeread to 0. In that way, if the user were to be undeleted we could then check and move anything in mdl_message_read to mdl_message where the timeread is 0.

            stronk7 Eloy Lafuente (stronk7)
            aborrow Anthony Borrow
            Petr Skoda Petr Skoda
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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