From 883d8cecaaaed9f617768a65402c94bcac796c5f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 3 Dec 2021 11:03:01 +0000 Subject: [PATCH] Improve platform types (#20027) --- src/vector/platform/ElectronPlatform.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index b8f229db30..5573db8164 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -52,11 +52,11 @@ import ToastStore from "matrix-react-sdk/src/stores/ToastStore"; import GenericExpiringToast from "matrix-react-sdk/src/components/views/toasts/GenericExpiringToast"; import SettingsStore from 'matrix-react-sdk/src/settings/SettingsStore'; import { IMatrixProfile, IEventWithRoomId as IMatrixEvent, IResultRoomEvents } from "matrix-js-sdk/src/@types/search"; +import { logger } from "matrix-js-sdk/src/logger"; +import { MatrixEvent } from "matrix-js-sdk/src/models/event"; import VectorBasePlatform from './VectorBasePlatform'; -import { logger } from "matrix-js-sdk/src/logger"; - const electron = window.electron; const isMac = navigator.platform.toUpperCase().includes('MAC'); @@ -399,7 +399,7 @@ export default class ElectronPlatform extends VectorBasePlatform { return notification; } - loudNotification(ev: Event, room: Object) { + loudNotification(ev: MatrixEvent, room: Room) { electron.send('loudNotification'); }