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