From eb0a4a5fb93fc8a0900175aee74d70e901f90c56 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 24 Sep 2020 18:30:30 +0100 Subject: [PATCH] type the action payload --- src/CallHandler.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index 7d77dbc123..62b91f938b 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -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') {