mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 22:37:46 +00:00
This event is the event host applications need to listen to for knowing when to dispose the SDK from now on. Since the introduction of breakout rooms it's possible that we navigate from one meeting to another, so there will be several conference join / terminations. In addition, local track destruction is now moved to SET_ROOM when there is no room, aka, we are going back to the welcome page or to the black page.
35 lines
816 B
JavaScript
35 lines
816 B
JavaScript
// @flow
|
|
|
|
import React, { useEffect } from 'react';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { Text, View } from 'react-native';
|
|
import { useDispatch } from 'react-redux';
|
|
|
|
import { readyToClose } from '../../mobile/external-api/actions';
|
|
|
|
import styles from './styles';
|
|
|
|
|
|
const BlankPage = () => {
|
|
const dispatch = useDispatch();
|
|
const { t } = useTranslation();
|
|
|
|
/**
|
|
* Destroys the local tracks (if any) since no media is desired when this
|
|
* component is rendered.
|
|
*/
|
|
useEffect(() => {
|
|
dispatch(readyToClose());
|
|
}, []);
|
|
|
|
return (
|
|
<View style = { styles.blankPageWrapper }>
|
|
<Text style = { styles.blankPageText }>
|
|
{ t('blankPage.meetingEnded') }
|
|
</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export default BlankPage;
|