Avatar cap to 256 KiB; idle warn only while ready

Private-server headroom over any pipeline PNG. The 8-min
auto-unready warning now mirrors the 10-min action guard: no toast
when self isn't ready, since there's nothing to lose.
This commit is contained in:
foxyz committed 2026-09-12 11:47:51 +03:00
1 parent 190faf63c0
commit 2760c823c0
4 files changed
+13 -8

No files matched your search

@@ -390,7 +390,11 @@ class SessionCoordinator {
// While the room is PLAYING the ready flag gates nothing, so an
// idle viewer must never lose it mid-watch.
if (room.peek()?.transport != 'playing') {
if (idleSecs >= 8 * 60 && !_warnedIdle) {
// No warning when there is nothing to lose: the 10-min unready
// only fires while self is ready, so the 8-min warning must not
// fire while unready either.
final selfReady = selfMember.peek()?.ready ?? false;
if (selfReady && idleSecs >= 8 * 60 && !_warnedIdle) {
_warnedIdle = true;
_toastId++;
toasts.value = [