I have Microsoft Teams Version 1.5.00.9163 (64-bit). It was last updated on 20/04/2022.
Used to be able to pasting code with rich text formatting from an IDE. Suddenly it is just being pasted without any colors.
Tried on other microsoft products (Outlook, word, powerpoint and microsoft teams web), all are able to work and have the correct text with formatting pasted. Only the desktop teams app cant work suddenly.