Problem/Motivation
Hi,
In a 3 member thread, and when blocking mode is passive:
When user 3 bans user 2, the user 3 does not have access to that thread anymore.
When user 1 and user 2 continues sending messages in that same thread, user 3
is getting in the Private Message Notification -block more notifications of unread messages.
When user 3 clicks the Private Message Notification -block which is showing a number of new messages,
there is nothing to see.
Maybe the one who bans any user in a thread, should himself be removed from the threads where this banned
user is?
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
dxvargas commentedI am also experiencing a similar situation. in my case, only with two users. When the banned user 2 sends a message to "banning" user 1, the user 1 gets the new message notification.
For now I think we should use the same approach as in the threads notification and filter out messages in threads that have the banned user.
I don't think we should remove the "banning" user 1 from the notifications. Because if that users removes the ban, he should get access again to the threads.
Comment #4
dxvargas commentedI have created a MR with a fix.
But I let the issue in status "Needs work".
The tests are failing (I don't think it's related with my changes).
We need to test also if like this the notifications by email are also prevented.
Maybe some tests?
Comment #5
dxvargas commentedComment #7
alorencComment #8
alorencTests were falling due to #3488863
Yes, I think we need to provide a test for this issue.
Comment #9
dxvargas commentedI have enhanced the existing Functional JavaScript test
testNotifications()to test a banned user.Moving to Needs review.
Comment #10
claudiu.cristeaWe've opened the 4.x branch. Each new fix/feature should be be filled against the highest branch. After merging we'll decide whether it makes sense to backport to 3.0.x
Comment #11
dxvargas commentedI did the changes for 4.x. But it still needs the tests.
Comment #12
dxvargas commentedI put a test in place for this. It's ready for review.
Comment #13
claudiu.cristeaComment #15
claudiu.cristeaMerged in 4.x. Thank you!
Now this needs some work to be backported to 3.0x.
Comment #17
dxvargas commentedI've prepared the MR for 3.0.x .
Comment #19
claudiu.cristeaThanks. Merged