Read messages from blocked users
One of the most annoying things about the Moodle messaging system is that when a user receives a message from a user who has blocked them it doesn’t show.
The message windows still pops up and says there is a message waiting but the user in unable to read it.
Many of our students complained about this as the pop-ups become increasingly annoying.
To fix this I changed the code in /message/discussion.php