hi Stanislav, thanks for sharing your story! Your manager was wrong and you were right. The
only mistake you did was tolerating that behaviour for a long time and taking it personally, imho.
If you feel you're in a team managed inefficiently, raise the flag, talk to the manager (once), if that does not work, resign on your own and let the manager's manager know why you take that decision.