Monitor signer status

This commit is contained in:
Jon Staab
2025-07-30 15:54:10 -07:00
parent 8697cc23be
commit 03b42c8276
5 changed files with 46 additions and 7 deletions
+4 -4
View File
@@ -26,7 +26,7 @@
const rooms = Array.from($userRoomsByUrl.get(url) || [])
const checkConnection = async () => {
const checkConnection = async (signal: AbortSignal) => {
const connectionError = await checkRelayConnection(url)
if (connectionError) {
@@ -37,7 +37,7 @@
const error = authError || accessError
if (error) {
if (error && !signal.aborted) {
pushModal(SpaceAuthError, {url, error})
}
}
@@ -50,12 +50,12 @@
})
onMount(() => {
checkConnection()
const relays = [url]
const since = ago(MONTH)
const controller = new AbortController()
checkConnection(controller.signal)
// Load group meta, threads, calendar events, comments, and recent messages
// for user rooms to help with a quick page transition
pullConservatively({