Address remaining PR comments

This commit is contained in:
mplorentz
2026-03-05 16:46:29 -05:00
parent ecb42b7b66
commit 391caac165
5 changed files with 97 additions and 106 deletions
+2 -4
View File
@@ -7,6 +7,7 @@
import {isMobileViewport} from "@lib/html"
import ProfileCircle from "@app/components/ProfileCircle.svelte"
import RoomName from "@app/components/RoomName.svelte"
import {errorMessage} from "@lib/util"
import {pushToast} from "@app/util/toast"
import {
deriveVoiceParticipants,
@@ -46,10 +47,7 @@
try {
await joinVoiceRoom(url, h, joinAbortController.signal)
} catch (e) {
if (e instanceof Error && e.message === "Join cancelled") return
if (e instanceof DOMException && e.name === "AbortError") return
const message = e instanceof Error ? e.message : String(e)
pushToast({theme: "error", message: `Failed to join voice room: ${message}`})
pushToast({theme: "error", message: `Failed to join voice room: ${errorMessage(e)}`})
} finally {
isJoining = false
joinAbortController = undefined