Update StreamProvider.tsx

This commit is contained in:
talksik
2022-05-20 09:48:32 -05:00
parent 45c61790c6
commit e56c4af1e2
@@ -231,7 +231,7 @@ export function StreamProvider({ children }: { children: React.ReactChild }) {
roomsMap[lineId]?.tunedInMemberIds && roomsMap[lineId]?.tunedInMemberIds &&
!roomsMap[lineId]?.tunedInMemberIds.includes(user._id.toString()) !roomsMap[lineId]?.tunedInMemberIds.includes(user._id.toString())
) { ) {
lineStreamData?.peerRelations.forEach((peerRelation) => { lineStreamData?.peerRelations?.forEach((peerRelation) => {
peerRelation.peer.destroy(); peerRelation.peer.destroy();
}); });