diff --git a/src/app/slices/voice.ts b/src/app/slices/voice.ts index 01b93d84..745ee3aa 100644 --- a/src/app/slices/voice.ts +++ b/src/app/slices/voice.ts @@ -53,7 +53,12 @@ const voiceSlice = createSlice({ if (payload && state.voicing) { state.voicing = { ...state.voicing, ...payload }; } else { + // reset state.voicing = payload; + state.voicingMembers = { + ids: [], + byId: {} + }; } }, updateMuteStatus(state, { payload }: PayloadAction) { diff --git a/src/routes/chat/RTCWidget.tsx b/src/routes/chat/RTCWidget.tsx index 959ed284..2ad16eb6 100644 --- a/src/routes/chat/RTCWidget.tsx +++ b/src/routes/chat/RTCWidget.tsx @@ -28,9 +28,9 @@ const RTCWidget = ({ id, context = "channel" }: Props) => { const name = voicingInfo.context == "channel" ? channelData[voicingInfo.id]?.name : userData[voicingInfo.id]?.name; if (!name) return null; return ( -
+
{/* {voicingInfo && */} -
+
@@ -41,7 +41,7 @@ const RTCWidget = ({ id, context = "channel" }: Props) => {
{/* } */} -
+