When you say nothing, you can't be misquoted or misunderstood. You also don't have to anxiously await a response. Saying nothing shuts things down. 11 quotes to remember when faced with toxic people will help you deal.
Just because you aren't given the credit and haven't been recognised for your work doesn't mean you have to give up or stop. You don't always need credit, other people do not always have to know what you are capable of doing as long as you do.