vicariousdrama / cornychat

🌽 Corny Chat is an open source audio space built on Jam that integrates Nostr and Lightning
https://cornychat.com
GNU Affero General Public License v3.0
19 stars 6 forks source link

Feature: Auto-Navigate to Homepage when at Enter Room screen for too long #53

Closed vicariousdrama closed 4 months ago

vicariousdrama commented 4 months ago

When a user is on the Enter Room screen they establish connection to participants in the room and are counted as a user of the room. As the server is only aware of a connection, but not the user's state, this causes rooms with only people at the door to appear as though they have people in them on the lobby page, and via the announcement bot.

Recommend adding script to force navigating anyone at the Enter Room screen to the home page if they are there in excess of 1 minute.

vicariousdrama commented 4 months ago

The 20240410 update will begin sending users to homepage if they stay on the enter room screen doing nothing for 30+ seconds, but this requires clients to see the new update. Existing clients under the Apple ecosystem are still initiating websocket connections for pinging

vicariousdrama commented 4 months ago

Old clients will stay at the enter room screen, but their websocket attempts will be rejected and also not sent to peers. As such they wont be counted for number of people in a room any longer.