I’m unable to replicate this issue until the same staff user already flagged that post. It is working properly if two different users are involved like in the above example.
I fixed the issue by disabling the button when the staff user can’t perform that action.