diff --git a/src/routes/chat/SessionList/Session.tsx b/src/routes/chat/SessionList/Session.tsx index 89fc63ed..15244dce 100644 --- a/src/routes/chat/SessionList/Session.tsx +++ b/src/routes/chat/SessionList/Session.tsx @@ -101,7 +101,9 @@ const Session: FC = ({ messageData, loginUid }); - const isVoicing = type == "channel" && voiceList.findIndex(item => item.id == id) > -1; + const isVoicing = voiceList.some((item) => { + return item.context == type && item.id === id; + }); return (