|
@@ -2,7 +2,6 @@
|
2
|
2
|
|
3
|
3
|
import React, { PureComponent } from 'react';
|
4
|
4
|
|
5
|
|
-import { IconShareDesktop } from '../../icons';
|
6
|
5
|
import { getParticipantById } from '../../participants';
|
7
|
6
|
import { connect } from '../../redux';
|
8
|
7
|
import { getAvatarColor, getInitials } from '../functions';
|
|
@@ -192,17 +191,10 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
|
192
|
191
|
const { colorBase, displayName, participantId } = ownProps;
|
193
|
192
|
const _participant: ?Object = participantId && getParticipantById(state, participantId);
|
194
|
193
|
const _initialsBase = _participant?.name ?? displayName;
|
195
|
|
- const screenShares = state['features/video-layout'].screenShares || [];
|
196
|
|
-
|
197
|
|
- let _loadableAvatarUrl = _participant?.loadableAvatarUrl;
|
198
|
|
-
|
199
|
|
- if (participantId && screenShares.includes(participantId)) {
|
200
|
|
- _loadableAvatarUrl = IconShareDesktop;
|
201
|
|
- }
|
202
|
194
|
|
203
|
195
|
return {
|
204
|
196
|
_initialsBase,
|
205
|
|
- _loadableAvatarUrl,
|
|
197
|
+ _loadableAvatarUrl: _participant?.loadableAvatarUrl,
|
206
|
198
|
colorBase: !colorBase && _participant ? _participant.id : colorBase
|
207
|
199
|
};
|
208
|
200
|
}
|