Found a bug with AttachParent replication

I’ve noticed this too. I’m trying to detach a capsule, detach the mesh, then set the mesh as the root component for the actor, so that mesh replication drives the actor. However, the capsule goes back to being the mesh’s parent and root component and it all happens starting from this PostRepNotifies. I cannot figure why it just sets the old parent as the new parent with that Swap/Exchange operation.