feat(filmstrip) fixed context menus for thumbnail
This commit is contained in:
parent
307e253276
commit
cce27baaf4
|
@ -5,7 +5,6 @@ import { View } from 'react-native';
|
|||
import type { Dispatch } from 'redux';
|
||||
|
||||
import { ColorSchemeRegistry } from '../../../base/color-scheme';
|
||||
import { openDialog } from '../../../base/dialog';
|
||||
import { MEDIA_TYPE, VIDEO_TYPE } from '../../../base/media';
|
||||
import {
|
||||
PARTICIPANT_ROLE,
|
||||
|
@ -23,10 +22,12 @@ import { StyleType } from '../../../base/styles';
|
|||
import { getTrackByMediaTypeAndParticipant } from '../../../base/tracks';
|
||||
import { ConnectionIndicator } from '../../../connection-indicator';
|
||||
import { DisplayNameLabel } from '../../../display-name';
|
||||
import {
|
||||
showConnectionStatus,
|
||||
showContextMenuDetails,
|
||||
showSharedVideoMenu
|
||||
} from '../../../participants-pane/actions.native';
|
||||
import { toggleToolboxVisible } from '../../../toolbox/actions.native';
|
||||
import { RemoteVideoMenu } from '../../../video-menu';
|
||||
import ConnectionStatusComponent from '../../../video-menu/components/native/ConnectionStatusComponent';
|
||||
import SharedVideoMenu from '../../../video-menu/components/native/SharedVideoMenu';
|
||||
import { SQUARE_TILE_ASPECT_RATIO } from '../../constants';
|
||||
|
||||
import AudioMutedIndicator from './AudioMutedIndicator';
|
||||
|
@ -188,20 +189,16 @@ class Thumbnail extends PureComponent<Props> {
|
|||
_onThumbnailLongPress() {
|
||||
const { _participantId, _local, _isFakeParticipant, _localVideoOwner, dispatch } = this.props;
|
||||
|
||||
if (_local) {
|
||||
dispatch(openDialog(ConnectionStatusComponent, {
|
||||
participantID: _participantId
|
||||
}));
|
||||
} else if (_isFakeParticipant) {
|
||||
if (_localVideoOwner) {
|
||||
dispatch(openDialog(SharedVideoMenu, {
|
||||
_participantId
|
||||
}));
|
||||
if (_isFakeParticipant && _localVideoOwner) {
|
||||
dispatch(showSharedVideoMenu(_participantId));
|
||||
}
|
||||
|
||||
if (!_isFakeParticipant) {
|
||||
if (_local) {
|
||||
dispatch(showConnectionStatus(_participantId));
|
||||
} else {
|
||||
dispatch(showContextMenuDetails(_participantId));
|
||||
}
|
||||
} else {
|
||||
dispatch(openDialog(RemoteVideoMenu, {
|
||||
participantId: _participantId
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue