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!
AHHHHHHHH!!! THANK YOUUUU!!!! I wasn’t. I knew I needed to but what threw me off was when I looked at BP to see how bp-nouveau-messages was being enqueued, I didn’t see any dependencies so it left me unsure if a) I actually needed them (still thought I did) and b) what they were.