Hide voice rooms on mobile

This commit is contained in:
mplorentz
2026-03-09 11:19:10 -04:00
parent 7bf240e672
commit 393f85bc82
3 changed files with 10 additions and 14 deletions
-5
View File
@@ -5,7 +5,6 @@
import VolumeLoud from "@assets/icons/volume-loud.svg?dataurl"
import Icon from "@lib/components/Icon.svelte"
import SecondaryNavItem from "@lib/components/SecondaryNavItem.svelte"
import {isMobileViewport} from "@lib/html"
import ProfileCircle from "@app/components/ProfileCircle.svelte"
import RoomName from "@app/components/RoomName.svelte"
import {pushToast} from "@app/util/toast"
@@ -30,10 +29,6 @@
let joinAbortController: AbortController | undefined
const handleClick = async () => {
if (isMobileViewport()) {
pushToast({theme: "error", message: "Voice rooms are not yet supported on mobile."})
return
}
if (isActive) {
await leaveVoiceRoom()
return