Don't show technical error message to the user
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
import {isMobileViewport} from "@lib/html"
|
import {isMobileViewport} from "@lib/html"
|
||||||
import ProfileCircle from "@app/components/ProfileCircle.svelte"
|
import ProfileCircle from "@app/components/ProfileCircle.svelte"
|
||||||
import RoomName from "@app/components/RoomName.svelte"
|
import RoomName from "@app/components/RoomName.svelte"
|
||||||
import {errorMessage} from "@lib/util"
|
|
||||||
import {pushToast} from "@app/util/toast"
|
import {pushToast} from "@app/util/toast"
|
||||||
import {
|
import {
|
||||||
deriveVoiceParticipants,
|
deriveVoiceParticipants,
|
||||||
@@ -47,7 +46,7 @@
|
|||||||
try {
|
try {
|
||||||
await joinVoiceRoom(url, h, joinAbortController.signal)
|
await joinVoiceRoom(url, h, joinAbortController.signal)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
pushToast({theme: "error", message: `Failed to join voice room: ${errorMessage(e)}`})
|
pushToast({theme: "error", message: "Failed to join voice room"})
|
||||||
} finally {
|
} finally {
|
||||||
isJoining = false
|
isJoining = false
|
||||||
joinAbortController = undefined
|
joinAbortController = undefined
|
||||||
|
|||||||
Reference in New Issue
Block a user