You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Added a comment about updating thumbnails
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -85,6 +85,7 @@ export default class DesktopCapturerSourcePicker extends React.Component<
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
// We update the sources every 500ms to get newer thumbnails
|
||||||
this.interval = setInterval(async () => {
|
this.interval = setInterval(async () => {
|
||||||
this.setState({
|
this.setState({
|
||||||
sources: await getDesktopCapturerSources(),
|
sources: await getDesktopCapturerSources(),
|
||||||
|
|||||||
Reference in New Issue
Block a user