Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(filmstrip/native): show screen-share on stage on long press

Calin-Teodor31ae24a2d13c
diff --git a/react/features/filmstrip/components/native/Thumbnail.tsx b/react/features/filmstrip/components/native/Thumbnail.tsx
index 661ce417f8..da59295b49 100644
--- a/react/features/filmstrip/components/native/Thumbnail.tsx
+++ b/react/features/filmstrip/components/native/Thumbnail.tsx
@@ -184,7 +184,14 @@ class Thumbnail extends PureComponent<IProps> {
* @returns {void}
*/
_onThumbnailLongPress() {
- const { _fakeParticipant, _participantId, _local, _localVideoOwner, dispatch } = this.props;
+ const {
+ _fakeParticipant,
+ _isVirtualScreenshare,
+ _participantId,
+ _local,
+ _localVideoOwner,
+ dispatch
+ } = this.props;
if (_fakeParticipant && _localVideoOwner) {
dispatch(showSharedVideoMenu(_participantId));
@@ -194,6 +201,8 @@ class Thumbnail extends PureComponent<IProps> {
} else {
dispatch(showContextMenuDetails(_participantId));
}
+ } else if (_isVirtualScreenshare) {
+ dispatch(pinParticipant(_participantId));
} // else no-op
}