raiseHandState now visible for new participants, deleted raiseHand notification
This commit is contained in:
+7
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user