Skip to content

Commit

Permalink
Improve platform types (#20027)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Dec 3, 2021
1 parent 459f2f2 commit 883d8ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vector/platform/ElectronPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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');
}

Expand Down

0 comments on commit 883d8ce

Please sign in to comment.