TeamsStatus icon indicating copy to clipboard operation
TeamsStatus copied to clipboard

Status does not update when call is finished

Open dinki opened this issue 4 years ago • 8 comments

I’ve been using this for about a month and it works well, but I am getting an issue where my status is not going back to ‘Not in a call’ when I close out a call. I have to kill Teams and reopen it to get things synced again.

Has anyone run into this? Any ideas on troubleshooting? It does not happen every time but it does happen fairly often (at least once per day).

dinki avatar Apr 20 '21 14:04 dinki

I've seen this happening because of the increased logging of the client. Have you picked or noticed the increased amount of lines that is being gathered by the script?

EBOOZ avatar Apr 21 '21 11:04 EBOOZ

@EBOOZ Apologies for this, but can you tell me where to find the logging you're mentioning?

dinki avatar Apr 21 '21 11:04 dinki

This is the code in the script: $TeamsStatus = Get-Content -Path "C:\Users\$UserName\AppData\Roaming\Microsoft\Teams\logs.txt" -Tail 1000 | Select-String -Pattern 'Setting the taskbar overlay icon -', 'StatusIndicatorStateService: Added' | Select-Object -Last 1

Get-Content searches in the logs.txt file for certain phrases. It tails the logfile for the last 1000 lines (in the latest version of the script).

EBOOZ avatar Apr 21 '21 11:04 EBOOZ

Thanks for the speedy response. I'll give it a look.

I may also need to update the script. Is that a matter of just updating the code in c:\scripts and rebooting?

dinki avatar Apr 21 '21 11:04 dinki

If you are already using the separated Settings.ps1 file, then it's just replacing the Get-TeamsStatus.ps1 script. Otherwise you'll need to copy/past the information from your old Get-TeamsStatus.ps1 version to Settings.ps1, and then use the latest version.

EBOOZ avatar Apr 21 '21 12:04 EBOOZ

I had the same issue. I increased the tail size to 10000 and the problem went away

pswarts avatar Jun 29 '21 06:06 pswarts

@pswarts Thanks for posting this. I've made the change and so far the problem has gone away for me as well.

@EBOOZ I'm not sure of the mechanism, but perhaps this could be explored for the sake of others using your script?

Thanks to you both!

dinki avatar Jun 29 '21 18:06 dinki

Is this fixed with #36 or #38?

metbril avatar Dec 21 '21 21:12 metbril