jschuur / coworking.party

Virtual coworking communities to keep people motivated and have a little fun.
https://coworking.party
7 stars 1 forks source link

Feature: Set users away based on page visibility #40

Closed jschuur closed 2 months ago

jschuur commented 2 months ago

Use the visibility API to show when a user has the page running in a hidden tab or their screensaver is on.

Verify that they stay connected to PartyKit in cases like this.

Don't play sounds or animation when the local users has this status.

Prerequisite: #37

jschuur commented 2 months ago

Should this use 'away' or 'idle'? Reserve 'away' for real world away that was explicitly set?

jschuur commented 2 months ago

Done, but could be refined (#53)