Skip to content

Commit 97a5cb9

Browse files
committed
fixup
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
1 parent 8c971c4 commit 97a5cb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/talk/renderer/UserStatus/composables/useIsAway.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const useIsAway = createSharedComposable((threshold = 60_000) => {
1919

2020
return computed(() => {
2121
return screenState.value === 'locked' // System Locked - the user is away immediately
22-
|| userState.value !== 'active'
23-
|| isAppIdle.value // Fallback in case IdleDetector is not available (yet)
22+
|| (userState.value !== 'active' && isAppIdle.value) // Check both to cover unavailable IdleDetector
2423
})
2524
})

0 commit comments

Comments
 (0)