mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Remove unnecessary @ts-ignores Use @ts-expect-error instead of @ts-ignore for external dependencies
32 lines
841 B
TypeScript
32 lines
841 B
TypeScript
import { IParticipant } from '../base/participants/types';
|
|
import { navigate }
|
|
from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
|
|
import { screen } from '../mobile/navigation/routes';
|
|
|
|
import { OPEN_CHAT } from './actionTypes';
|
|
|
|
export * from './actions.any';
|
|
|
|
/**
|
|
* Displays the chat panel.
|
|
*
|
|
* @param {Object} participant - The recipient for the private chat.
|
|
* @param {boolean} disablePolls - Checks if polls are disabled.
|
|
*
|
|
* @returns {{
|
|
* participant: participant,
|
|
* type: OPEN_CHAT
|
|
* }}
|
|
*/
|
|
export function openChat(participant: IParticipant | undefined | Object, disablePolls?: boolean) {
|
|
if (disablePolls) {
|
|
navigate(screen.conference.chat);
|
|
}
|
|
navigate(screen.conference.chatandpolls.main);
|
|
|
|
return {
|
|
participant,
|
|
type: OPEN_CHAT
|
|
};
|
|
}
|