Hello,

I've installed the Private Message module on my website, and it looks pretty promising in terms of functionalities/integration.
I'm however looking for some functionalities (like creating a thread, sending a message,...) to be triggered via the Rules module.
According to the module description page, these functionalities were planed for the 8.x-2.0 release, however unless I missed them or I did something wrong, I'm still not seeing them in the 2.0-beta15 release.

I tried for instance to create a thread using Rules. Threads are visible as entities inside the module, and there is a Rule action available to create a thread, however there is no field in the Rules UI to designate the recipient, issuer, etc...
Also, when I try to save such Rule creating a Thread, the system is showing an error saying that "Update existing entity while changing the ID is not supported." despite when querying my database through PhPMyAdmin I can see that the thread has been created although it is not visible at all on my site (I guess because no issuer/recipient could be entered in the Rule UI).

Can anyone tell me if these Rules functionalities are still planed to be developed, and be so kind to propose a patch to have at least the basic functionalities available at very short term, waiting for a later official release of the Private Message module?
I'm not a developer, so I don't know at all how to create these functionalities myself, but I'm happy to test every patch proposed. :-)

I thank you in advance for your answer and help!
Cheers,

CommentFileSizeAuthor
#2 3082478-2.patch2.69 KBwombatbuddy
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Arno2Mars created an issue. See original summary.

wombatbuddy’s picture

StatusFileSize
new2.69 KB

The patch is the implementation of the "Send private message" rules action.

muaz7731’s picture

Version: 8.x-2.0-beta15 » 8.x-2.x-dev
Status: Active » Reviewed & tested by the community

testing using the patch from #2

It works for me. Using Drupal 9.3.5 with private_message dev 29 Jan 22

+1 for RTBC

artem_sylchuk made their first commit to this issue’s fork.

  • artem_sylchuk committed 3c2e00f on 8.x-2.x
    Issue #3082478 by artem_sylchuk, wombatbuddy, Arno2Mars, muaz91: Rules...
artem_sylchuk’s picture

Status: Reviewed & tested by the community » Fixed

Thanks guys.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.