raiseHandState now visible for new participants, deleted raiseHand notification

This commit is contained in:
Stefan Otto
2018-07-26 10:01:35 +02:00
parent 19b1269dc3
commit ee3c183c9c
5 changed files with 72 additions and 15 deletions
+7 -11
View File
@@ -178,11 +178,11 @@ export default class RoomClient
});
}
changeProfilePicture(picture)
changeProfilePicture(picture)
{
logger.debug('changeProfilePicture() [picture: "%s"]', picture);
this._protoo.send('change-profile-picture', { picture }).catch((error) =>
this._protoo.send('change-profile-picture', { picture }).catch((error) =>
{
logger.error('shareProfilePicure() | failed: %o', error);
});
@@ -913,11 +913,6 @@ export default class RoomClient
{
this._dispatch(
stateActions.setMyRaiseHandState(state));
this._dispatch(requestActions.notify(
{
text : 'raiseHand state changed'
}));
this._dispatch(
stateActions.setMyRaiseHandStateInProgress(false));
})
@@ -1806,10 +1801,11 @@ export default class RoomClient
this._dispatch(stateActions.addPeer(
{
name : peer.name,
displayName : displayName,
device : peer.appData.device,
consumers : []
name : peer.name,
displayName : displayName,
device : peer.appData.device,
raiseHandState : peer.appData.raiseHandState,
consumers : []
}));
if (notify)
@@ -47,6 +47,20 @@ const ListPeer = (props) =>
<div className='peer-info'>
{peer.displayName}
</div>
<div className='indicators'>
{peer.raiseHandState ?
<div className={
classnames(
'icon', 'raise-hand', {
on : peer.raiseHandState,
off : !peer.raiseHandState
}
)
}
/>
:null
}
</div>
<div className='controls'>
{ screenConsumer ?
<div