More enums

This commit is contained in:
David Baker 2020-10-12 10:25:23 +01:00
parent 3af7abb5fe
commit abd5e3b3cf
3 changed files with 18 additions and 17 deletions

View file

@ -71,7 +71,7 @@ import RoomHeader from "../views/rooms/RoomHeader";
import TintableSvg from "../views/elements/TintableSvg";
import {XOR} from "../../@types/common";
import { IThreepidInvite } from "../../stores/ThreepidInviteStore";
import { CallState, MatrixCall } from "matrix-js-sdk/lib/webrtc/call";
import { CallState, CallType, MatrixCall } from "matrix-js-sdk/lib/webrtc/call";
const DEBUG = false;
let debuglog = function(msg: string) {};
@ -1892,7 +1892,7 @@ export default class RoomView extends React.Component<IProps, IState> {
if (activeCall) {
let zoomButton; let videoMuteButton;
if (activeCall.type === "video") {
if (activeCall.type === CallType.Video) {
zoomButton = (
<div className="mx_RoomView_voipButton" onClick={this.onFullscreenClick} title={_t("Fill screen")}>
<TintableSvg