Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 28ff4e6

Browse files
committed
Move DesktopCapturerSource
Signed-off-by: Šimon Brandner <[email protected]>
1 parent eca8ef3 commit 28ff4e6

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/@types/global.d.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ declare global {
6666
mxModalWidgetStore: ModalWidgetStore;
6767
}
6868

69-
export interface DesktopCapturerSource {
70-
id: string;
71-
name: string;
72-
thumbnail;
73-
// This property is not camelcase and isn't used, therefore it is commented
74-
//display_id: string;
75-
appIcon;
76-
}
77-
7869
interface Document {
7970
// https://developer.mozilla.org/en-US/docs/Web/API/Document/hasStorageAccess
8071
hasStorageAccess?: () => Promise<boolean>;

src/components/views/elements/DesktopCapturerSourcePicker.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ import BaseDialog from "..//dialogs/BaseDialog"
2020
import AccessibleButton from './AccessibleButton';
2121
import {getDesktopCapturerSources} from "matrix-js-sdk/src/webrtc/call";
2222

23+
export interface DesktopCapturerSource {
24+
id: string;
25+
name: string;
26+
thumbnailURL;
27+
}
28+
2329
export enum Tabs {
2430
Screens = "screens",
2531
Windows = "windows",

0 commit comments

Comments
 (0)