Closed (fixed)
Project:
Private Message
Version:
8.x-2.0-beta16
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 May 2021 at 17:58 UTC
Updated:
12 Jun 2021 at 15:39 UTC
Jump to comment: Most recent
Comments
Comment #2
artem_sylchukhook_ENTITY_TYPE_insert - you should be able to catch the new message on hook_private_message_insert(). As far as I remember you may have thread information missing on this stage.
Alternatively you can check hook_ENTITY_TYPE_update - you should be able to catch the new message in hook_private_message_thread_update():
Probably worth to include hook_on_new_message that into a module's code.
Comment #3
drupalfan2 commentedI found a solution by myself few days ago:
So the Message module helps to solve this.
Has your solution some advantages?
Comment #4
artem_sylchukThat's great that you found a solution