1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00

This check doesn't seem to be necessary

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-04-30 14:43:00 +02:00
parent 4b3c8b2969
commit 3b7d6f8334

View File

@ -38,11 +38,11 @@ function addListeners(call) {
const remoteElement = document.getElementById("remote"); const remoteElement = document.getElementById("remote");
const localElement = document.getElementById("local"); const localElement = document.getElementById("local");
if (remoteFeed && remoteFeed.stream) { if (remoteFeed) {
remoteElement.srcObject = remoteFeed.stream; remoteElement.srcObject = remoteFeed.stream;
remoteElement.play(); remoteElement.play();
} }
if (localFeed && localFeed.stream) { if (localFeed) {
localElement.muted = true; localElement.muted = true;
localElement.srcObject = localFeed.stream; localElement.srcObject = localFeed.stream;
localElement.play(); localElement.play();