Various homeserver state FST and queue fixes #101

Open
l1s5 wants to merge 6 commits from l1s5/out-of-your-element:homeserver-online-check-fixes into main
Showing only changes of commit caf5f4ad71 - Show all commits

matrix: fix homeserver checks

`checkingWhileOnline` compared against "check while online", but the
transition is called "check assume online", so it was always false.
l1s5 2026-10-27 15:10:25 +09:00
Signed by untrusted user: l1s5
GPG key ID: D0A90CC905B58D9B

View file

@ -39,7 +39,7 @@ const homeserverStatus = sync.remember(() => new class HomeserverStatus {
.defineState("checking", {
onEnter: [async (event) => {
this.checkingWhileOnline = event === "check while online"
this.checkingWhileOnline = event === "check assume online"
const pingResult = await api.ping().catch(e => ({ok: false}))
this.lastCheck = Date.now()
if (pingResult.ok) {