Send PM from delete post page.
Closed this issue · 2 comments
Somewhat implemented. But the following issues remain:
- Will not trigger from delete thread page.
- List of users to PM can potentially get out of sync with the # of selected posts. This can happen for any number of reasons, as detailed below.
List of PM users getting out of sync
The list of posts to delete is tied to the vBulletin session, while the list of users to PM is tied to localStorage
. If the list of posts to delete expires, localStorage
will be unaffected. Thus, the list of users wil be out of sync.
Use of the back button might also screw with things. Need to test this more though.
To fix the localStorage issue, I will need to get ahold of the list of posts to delete, and compare it with the list of users. Maybe it would be better to switch to post ID -> username map and storage that in local storage. Then I can acquire the post IDs from the delete post form, and retrieve only the usernames that are selected. This doesn't fix extraneous information in the map, but it does make sure I'll only have what will be deleted. Then the extra crap will just be thrown away.
Implemented map idea and it worked.