message: fix: prevent duplicated video element
diff: @@ -66,6 +66,10 @@ export default class VideoWindow {
  }
  private addStream = (stream: MediaStream) => {
  + if (this.videoElement) {
  + return;
  + }
  +
  //@REVIEW can a session contain multiple streams?
  Log.debug('Remote stream for session ' + this.session.getId() + ' added.');
  @@ -93,5 +97,8 @@ export default class VideoWindow {
  Log.debug('Remote stream for ' + this.session.getId() + ' removed.');
  VideoDialog.detachMediaStream(this.videoElement);
  +
  + this.videoElement.remove();
  + this.videoElement = undefined;
  }
  }
  