Solo: no idle unready, no party corner in fullscreen; a cancelled Invite returns to solo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
foxyzandClaude Opus 5.5 committed 2026-10-09 23:39:48 +03:00
1 parent 0115d54ab8
commit 059b7dd306
4 files changed
+42 -8

No files matched your search

@@ -240,6 +240,9 @@ class SessionCoordinator {
StreamSubscription? _statusSub;
bool _manualClose = false;
/// A solo session (set by SessionState): no idle unready / sit out,
/// there is nobody to hold up.
bool solo = false;
bool _playerReady = false;
bool _wasPlayAllowed = false;
// Last ready flag the server reported for self; restored after a
@@ -949,9 +952,11 @@ class SessionCoordinator {
// activity so a pause after a long watch starts a fresh idle clock.
if (r != null) _readyAfterJoinBack(r, now);
final sitOutWhenIdle = AppSettings.instance.idleSitsOut.peek();
final event = _idle.tick(now,
playing: serverState.peek()?.transport == 'playing',
selfReady: selfMember.peek()?.ready ?? false);
final event = solo
? IdleEvent.none
: _idle.tick(now,
playing: serverState.peek()?.transport == 'playing',
selfReady: selfMember.peek()?.ready ?? false);
switch (event) {
case IdleEvent.warn:
_toastId++;