Support selecting Peers from ParticipantList
This commit is contained in:
1 parent
9b407d58a0
commit
9e23683f0b
4 files changed
+43
-61
No files matched your search
@@ -72,7 +72,16 @@ const room = (state = initialState, action) =>
|
||||
return { ...state, mode: action.payload.mode };
|
||||
|
||||
case 'SET_SELECTED_PEER':
|
||||
return { ...state, selectedPeerName: action.payload.selectedPeerName };
|
||||
{
|
||||
const { selectedPeerName } = action.payload;
|
||||
|
||||
return {
|
||||
...state,
|
||||
|
||||
selectedPeerName : state.selectedPeerName === selectedPeerName ?
|
||||
null : selectedPeerName
|
||||
};
|
||||
}
|
||||
|
||||
default:
|
||||
return state;
|
||||
|
||||
Reference in new issue
Block a user