Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 41baa7be59 |
@@ -13,7 +13,7 @@ import {
|
||||
type AudioCaptureOptions,
|
||||
} from "livekit-client"
|
||||
import {derived, get} from "svelte/store"
|
||||
import {map, not, removeUndefined, uniqBy} from "@welshman/lib"
|
||||
import {map, removeUndefined, uniqBy} from "@welshman/lib"
|
||||
import type {TrustedEvent} from "@welshman/util"
|
||||
import {makeHttpAuth, makeHttpAuthHeader, getTags} from "@welshman/util"
|
||||
import {signer} from "@welshman/app"
|
||||
@@ -359,8 +359,9 @@ export const toggleMute = async () => {
|
||||
const session = get(currentVoiceSession)
|
||||
if (!session) return
|
||||
|
||||
voiceMicMuted.update(not)
|
||||
if (get(voiceMicMuted)) {
|
||||
const muted = !get(voiceMicMuted)
|
||||
voiceMicMuted.set(muted)
|
||||
if (muted) {
|
||||
// Disable and re-enable microphone to trigger permission prompt
|
||||
session.room.localParticipant.setMicrophoneEnabled(false)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user