I have a use case where I need all users "blocked" from receiving messages until another user selects to "unblock" them.
Use case:
User A wants to send a PM to User B. (I have it setup where User A will "Flag" User B to notify them that they wish to chat.) User A would at the same time "unblock" User B. When User B gets the "Flag" notification they would then decided if they want to chat with User A. If so, User A would "unblock" User B and send a PM.
In order for this to work all users must be "blocked" at first, by default. In the case above User A & B would be "unblocked" to each other but they will both remain "blocked" [globally] to the rest of the users.
My limited experience with PHP tells me that there is probably a TRUE/FALSE statement in the module that I could just reverse (?). I'm going to continue looking for that, but if there is a better more correct way of doing this I would greatly appreciate it.
Thanks!
Comments
Comment #1
System Lord CreditAttribution: System Lord commentedThis may be more complicated than I first thought. The "Blocked" list. I certainly wouldn't want that filled with every user. There would have to be a way to not list all users by default, but also show user specific blocks.
Comment #2
BerdirThe User relationship module has privatemsg integration, you could create a relationship type and only allow to send private messages if the connection for that exists.
Comment #3
System Lord CreditAttribution: System Lord commentedThanks Berdir. I'll check that out.
Comment #4
System Lord CreditAttribution: System Lord commentedCould not get it to work. Posted issue at: https://www.drupal.org/node/2401629
Comment #5
ivnish CreditAttribution: ivnish commented