type the action payload

This commit is contained in:
David Baker 2020-09-24 18:30:30 +01:00
parent 10338798d9
commit eb0a4a5fb9

View file

@ -69,6 +69,7 @@ import {generateHumanReadableId} from "./utils/NamingUtils";
import {Jitsi} from "./widgets/Jitsi"; import {Jitsi} from "./widgets/Jitsi";
import {WidgetType} from "./widgets/WidgetType"; import {WidgetType} from "./widgets/WidgetType";
import {SettingLevel} from "./settings/SettingLevel"; import {SettingLevel} from "./settings/SettingLevel";
import { ActionPayload } from "./dispatcher/payloads";
import {base32} from "rfc4648"; import {base32} from "rfc4648";
import QuestionDialog from "./components/views/dialogs/QuestionDialog"; import QuestionDialog from "./components/views/dialogs/QuestionDialog";
@ -269,7 +270,7 @@ export default class CallHandler {
}, null, true); }, null, true);
} }
private onAction = (payload) => { private onAction = (payload: ActionPayload) => {
const placeCall = (newCall) => { const placeCall = (newCall) => {
this.setCallListeners(newCall); this.setCallListeners(newCall);
if (payload.type === 'voice') { if (payload.type === 'voice') {