fix: voicing tip for DM

This commit is contained in:
Tristan Yang
2023-05-09 20:07:52 +08:00
parent c7b6395cc9
commit 4727197e6c
+3 -1
View File
@@ -101,7 +101,9 @@ const Session: FC<IProps> = ({
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 (
<li className="session">
<ContextMenu