Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.2
-
Fix Version/s: None
-
Component/s: Messages
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Steps to reproduce:
1/ User sends me a message with spam in
2/ I recieve email of the spam and declare it a spam
3/ I login to moodle and get the message pop indicating I have a new message
4/ I block the user and dont read the message
Actual result:
Now every time I login I get messaging popup without any messages, and it is slow and unintuitive to find the user, unblock them and read the message.
Expected result:
Never hear from user again, and dont get popup
The cloned issue was marked as duplicate of a "pending messages if an user is deleted" issue.
But this is not so in version v1.8.3+
The problem may arise, because of a race condition between sending the message and blocking the sender. If both happen almost at the same time or the sender is an Admin, who bypasses this check anyway, the message is placed into the database, but the block check is negative.
The message is counted in the profile view of the recipient, the popup window opens, but messages of blocked senders are suppressed.
I suppose this is the same with v1.9 as reported.