Hello,
First of all, I would like to thank you for this very great module!
I have however observed a quite strange behavior that I'll try to explain.
On my site, I am trying to use messaging only referring to the interface of this module, meaning that I am trying to hide completely the UI of the private message module that is working behind.
My users are not free to chat with all others. The idea is that each authenticated user can send a message to the author of the node they are reading. So the solution I am implementing is to hide all buttons for opening new threads, adding users etc...
The private message module comes with a thread link that can be added on each node and allowing a user to send a message to the node author --> exactly what I need.
Now there are two cases:
1- There is no thread existing between the current user and the node author.
In that case, the private message thread link reads something like https://[website]/private-message/create?recipient=[uid]
Clicking on the private message link opens directly a new thread window in the private message windows interface --> This is exactly what I need
BUT
2- When there is a thread already existing between the current user and the node author, then the private message thread link reads something like https://[website]/private-messages/[thread id]
Clicking on the private message link forwards the current user to the "normal" private message interface/inbox --> Which is what I do not want as I want my users to see only the private message windows interface
Is there something that can be done in order to ensure that whatever a thread between the two users exists or not, only private message windows is triggered to open a new thread, and that the user is not sent to the backend private message inbox system?
I thank you in advance for your reply,
Regards,
Comments
Comment #2
cyber555 commentedHi, Arno2Mars!
Thank you very much for your good mean about my module! And I'm sorry for my so big delay for you asks.
But I'm not good understand, what I need to fix.
I have same situation for my users: on each node user can click to the link to open message window. In my case I have added only link https://[website]/private-message/create?recipient=[uid].
That link is intercepted by my code, so I'll not open private-message link, but I'll open window.
Maybe I need to intercept link https://[website]/private-messages/[thread id], and it will fix your problem.
I'll add that change right now, so please check new version to understand, is that correct decision or not.
Thank you
Comment #4
cyber555 commentedCheck version 8.x-1.0-beta19
Comment #5
arno2mars commentedHey Cyber555,
I have been testing beta19, and so far everything works now like a charm, private message windows is always opening whatever the thread exists or not.
Thanks a lot for your support!
Comment #6
cyber555 commented