The "Microsoft Teams Status" shows as away on teams when working from my desktop.
This is due to a weird caching issue! It may be the fact that the desktop application was the first device logged into. The phone being logged in after the desktop application tells teams this is the primary device. By clearing cache the desktop application becomes the primary device once again and regains control of status management.
Teams was installed on desktop and mobile phone.
Causing status to change to away when mobile phone goes to sleep.
Desktop application in this circumstance is not able to change status back to available.
Clear cache for the desktop application and a fresh login on desktop sets status back to available.
Problem described at top of article along with a windows solution to the problem
How to find cache folder on mac
see file: mac-clear-teams-cache.sh

