This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

jcarrolo01

  • *****
  • 256 posts
Add the possibility to delete Threads
« on: January 23, 2022, 10:44:13 PM »
Hello,

Still missing the option to delete threads, older threads, spam messages threads, and other unecessaries threads shold be deleted when they are not necessary...

In my example i had 15 spam threads and 2 recent threads, should be possible to delete the ones i dont want to keepth my inbox clean

Best regards
Joao carrolo

*

MB Themes

Re: Add the possibility to delete Threads
« Reply #1 on: January 24, 2022, 09:18:08 AM »
Problem here is that thread is owned by 2 users and it is hard to decide if one user can remove it for both :)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 475 posts
Re: Add the possibility to delete Threads
« Reply #2 on: January 24, 2022, 11:35:37 AM »
I've been having issues with this for a long time now that you can't delete a post. A solution for this is that 3 extra tables are provided.
If the user deletes the message, the additional table user_read1 is updated to is_read + 1
If the other user deletes the message, user_read2 gets an update to is_read + 1
Cron checks that both tables are in state 1 and destroys the message.
Before being completely removed there is still table 3, for example: messages_old which keeps a full copy for later administrative purposes but is no longer visible to the user. I've been working on this myself for a while, but since I'm not a pro I haven't quite succeeded.
« Last Edit: January 24, 2022, 11:37:50 AM by mwindey »

*

MB Themes

Re: Add the possibility to delete Threads
« Reply #3 on: January 24, 2022, 11:51:26 AM »
@mwindey
In theory, it would be possible to alter data on thread & messages records and remove emails & user ID (of user that has removed thread).
2nd user would still saw messages, but first one no, as all relations to this user were removed.
This would require also message sending blocking as well as handling when also 2nd user remove thread - to properly remove everything.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 475 posts
Re: Add the possibility to delete Threads
« Reply #4 on: January 24, 2022, 12:13:21 PM »
@MB Themes,

I know it is not as simple as it sounds  ;)

Marked as best answer by frosticek on January 26, 2022, 08:51:34 AM
*

MB Themes

Re: Add the possibility to delete Threads
« Reply #5 on: January 25, 2022, 06:25:40 PM »
Solution to remove thread has been implemented in latest version of plugin  :-* :P
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 475 posts
Re: Add the possibility to delete Threads
« Reply #6 on: January 26, 2022, 01:19:55 AM »
Nice one... Looks good...
Thanks :-*

*

mwindey

  • *****
  • 475 posts
Re: Add the possibility to delete Threads
« Reply #7 on: February 02, 2022, 12:38:34 PM »
The instant messenger delete function that was added is great but I noticed that there is still a small problem. If someone sends a message and deletes the sent message, the recipient can no longer block the sender, so the sender can eventually continue to send messages and immediately remove them from his/her sent box so it is not possible to block them.
If the recipient wants to block the sender, the sender email is empty:
https://mywebsite.xxx/im-ban/block_id/%7Bblock-email%7D?&block-email= 'empty here'
« Last Edit: February 02, 2022, 12:40:23 PM by mwindey »

*

MB Themes

Re: Add the possibility to delete Threads
« Reply #8 on: February 02, 2022, 03:22:15 PM »
@mwindey
You may disable removal of messages (maybe ?).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots