Various homeserver state FST and queue fixes #101
1 changed files with 1 additions and 1 deletions
matrix: fix homeserver checks
`checkingWhileOnline` compared against "check while online", but the transition is called "check assume online", so it was always false.
commit
caf5f4ad71
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue