Do you have jailbreak detection bypass tweaks (FlyJB, HideJB, kernbypass, ...): No (none enabled in Teams)
If yes, are you sure that it does not block this tweak: Yes
Bug Report
Opening a file, say a docx in Outlook, in Teams almost works. You do this by selecting "Share file via". One of two scenarios happen:
It immediately detects jailbreak
It opens with a prompt to choose a chat. If you leave this open for approximately 10 seconds, it will show Device is Non-Compliant / Jailbreak detection. If you instead select a chat quickly, it will start the upload of the file but notify that it has failed along with a jailbreak detection prompt. Upon returning to Teams, the file has not uploaded.
Environment
Bug Report
Opening a file, say a docx in Outlook, in Teams almost works. You do this by selecting "Share file via". One of two scenarios happen: