Skip to content

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

avatar: render a special avatar if the user is sharing their screen

Saúl Ibarra Corretgé149e53af76d8
diff --git a/react/features/base/avatar/components/Avatar.js b/react/features/base/avatar/components/Avatar.js
index 9c36a61cf7..d87e2d7723 100644
--- a/react/features/base/avatar/components/Avatar.js
+++ b/react/features/base/avatar/components/Avatar.js
@@ -178,10 +178,17 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
const { colorBase, displayName, participantId } = ownProps;
const _participant = participantId && getParticipantById(state, participantId);
const _initialsBase = (_participant && _participant.name) || displayName;
+ const screenShares = state['features/video-layout'].screenShares || [];
+
+ let _loadableAvatarUrl = _participant && _participant.loadableAvatarUrl;
+
+ if (participantId && screenShares.includes(participantId)) {
+ _loadableAvatarUrl = 'icon://share-desktop';
+ }
return {
_initialsBase,
- _loadableAvatarUrl: _participant && _participant.loadableAvatarUrl,
+ _loadableAvatarUrl,
colorBase: !colorBase && _participant ? _participant.id : colorBase
};
}