Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Only receive private messages from users on my Buddy List." ineffective when buddy l #2080

Closed
Destroy666x opened this issue Jun 26, 2015 · 8 comments
Assignees
Labels
b:1.8 Branch: 1.8.x s:resolved Status: Resolved. Solution implemented or scheduled t:bug Type: Bug. An issue causing error / flaw / malfunction
Milestone

Comments

@Destroy666x
Copy link
Contributor

The option "Only receive private messages from users on my Buddy List." in thUser CP doesn't work when the buddy list is empty. It appears !empty($user['buddylist']) has been added in inc/datahandlers/pm.php for some reason but I don't know why.

Original thread: "Only receive private messages from users on my Buddy List." ineffective when buddy l

@Destroy666x Destroy666x added t:bug Type: Bug. An issue causing error / flaw / malfunction s:confirmed Status: Confirmed. Retested and found the issue exists b:1.8 Branch: 1.8.x labels Jun 26, 2015
@Destroy666x Destroy666x added this to the 1.8.6 milestone Jun 26, 2015
@Destroy666x Destroy666x self-assigned this Jun 26, 2015
@tommm
Copy link
Member

tommm commented Jul 6, 2015

This is as intended; the option to only receive PMs from buddies should only apply when you're actually using the buddy list.

@Destroy666x
Copy link
Contributor Author

Why? The option says "Only receive private messages from buddy list". It doesn't mention anywhere that you will still receive PMs if your buddy list is empty. It's also shown for everyone: https://github.com/mybb/mybb/blob/feature/usercp.php#L1114 If I was the user selecting that option without any buddies, it would be an unexpected behavior for me to still receive messages (without admin override). So I agree with @stefan-st .

@dvz
Copy link
Contributor

dvz commented Jul 6, 2015

The way this feature works should be at least described somewhere, however I agree that it's counter-intuitive anyway. It would be logical to assume that no messages will be received when the list is empty.

@tommm
Copy link
Member

tommm commented Jul 6, 2015

@Destroy666x showing the user only receives PMs from buddies wasn't in the original design. This may have been added later.

There are two parts to this feature; one is turning it on and adding at least one person to the buddy list for it to be effective. Otherwise an accidental click (or not knowing what the feature does) eliminates the possibility for the user receiving PMs at all (which shouldn't be intended).

@Sama34
Copy link
Contributor

Sama34 commented Jul 6, 2015

Thew only change in 1.8 regarding this shows that the 1.6 behaviors still persists.
Current:
https://github.com/mybb/mybb/blob/feature/inc/datahandlers/pm.php#L304-L307

1.6
https://github.com/mybb/mybb/blob/master/inc/datahandlers/pm.php#L294-L301

The description is wrong at most.

@JN-Jones JN-Jones modified the milestones: 1.8.6, 1.8.7 Aug 26, 2015
@Stefan-MyBB Stefan-MyBB added s:feedback Status: Feedback. Further information/input needed and removed s:confirmed Status: Confirmed. Retested and found the issue exists labels Oct 29, 2015
@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.7, 1.8.8 Mar 2, 2016
@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.8, 1.8.9 Aug 31, 2016
@JN-Jones
Copy link
Contributor

@mybb/developers @mybb/management Seems like we need some discussion here. The possibilities are:

  • Show a warning somewhere if the setting is used without any buddy (either on activating it or deleting the last buddy)
  • Don't receive any pm if you have no buddy
  • Keep it like it is

I'd prefer the first variant so the feature works as described (only buddies can send me a pm) but it remembers you if you don't have a buddy anymore.

@euantorano
Copy link
Member

My vote would be for option 2 - Don't receive any pm if you have no buddy

@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.9, 1.8.10 Dec 15, 2016
@WildcardSearch
Copy link
Contributor

This is as intended; the option to only receive PMs from buddies should only apply when you're actually using the buddy list.

I agree with @tommm.

The !empty($user['buddylist']) is not included by mistake. I believe that it is there to prevent a user from clicking that checkbox erroneously who may or may not even understand the buddy list at all and find their incoming PMs disabled-- and most importantly, they won't even know that is has been done unless someone tells them.

To me if anything needs to be done it would be to add a note to the setting in User CP that the setting has no effect unless there is at least one buddy on the list.

euantorano pushed a commit that referenced this issue Jan 7, 2017
* Fixes #2080 - Add note

Fixes #2080 - Add note for: Only receive private messages from users on my Buddy List

* Add note for admin part

* Added missing dot :)
@euantorano euantorano added s:resolved Status: Resolved. Solution implemented or scheduled and removed s:feedback Status: Feedback. Further information/input needed labels Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.8 Branch: 1.8.x s:resolved Status: Resolved. Solution implemented or scheduled t:bug Type: Bug. An issue causing error / flaw / malfunction
Projects
None yet
Development

No branches or pull requests

8 participants