Hello, I am able to remove the Sent tab which removes access to the sent box page however the default js behavior still redirects to the sentbox after a successful private message is sent. I’m trying to figure out the best way to stop this behavior (ideally, would like to either stay on compose screen remove fields or clear fields and return success message or redirect to inbox and display success) but I am having trouble getting this to work.
In my latest attempt, I tried to dequeue the messages js and enqueue my own version but I couldn’t get that to work as it seemed other messages js dependencies weren’t loading.
Hoping someone might be able to point me in the right direction here. Thanks in advance!