Merge pull request #13 from metbril/fix-12

Add checks for missing statuses
pull/11/head^2
EBOOZ 4 years ago committed by GitHub
commit 58db967776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,6 +32,7 @@ $HAUrl = "<HAUrl>" # Example: https://yourha.duckdns.org
$lgAvailable = "Available"
$lgBusy = "Busy"
$lgAway = "Away"
$lgBeRightBack = "Be right back"
$lgDoNotDisturb = "Do not disturb"
$lgInAMeeting = "In a meeting"
$lgOffline = "Offline"
@ -108,6 +109,11 @@ If ($null -ne $TeamsProcess) {
$Status = $lgAway
Write-Host $Status
}
ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - $lgBeRightBack*" -or `
$TeamsStatus -like "*StatusIndicatorStateService: Added BeRightBack*") {
$Status = $lgBeRightBack
Write-Host $Status
}
ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - Do not disturb *" -or `
$TeamsStatus -like "*StatusIndicatorStateService: Added DoNotDisturb*" -or `
$TeamsStatus -like "*Setting the taskbar overlay icon - Focusing*" -or `
@ -120,6 +126,11 @@ If ($null -ne $TeamsProcess) {
$Status = $lgInAMeeting
Write-Host $Status
}
ElseIf ($TeamsStatus -like "*Setting the taskbar overlay icon - $lgOffline*" -or `
$TeamsStatus -like "*StatusIndicatorStateService: Added Offline*") {
$Status = $lgOffline
Write-Host $Status
}
If ($TeamsActivity -like "*Resuming daemon App updates*" -or `
$TeamsActivity -like "*SfB:TeamsNoCall*") {

Loading…
Cancel
Save