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

System Lord’s picture

This 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.

Berdir’s picture

The 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.

System Lord’s picture

Thanks Berdir. I'll check that out.

System Lord’s picture

Could not get it to work. Posted issue at: https://www.drupal.org/node/2401629

ivnish’s picture

Status: Active » Closed (outdated)