Store selected user for filmstrip in store
This commit is contained in:
@@ -7,7 +7,8 @@ const initialState =
|
||||
advancedMode : false,
|
||||
fullScreenConsumer : null, // ConsumerID
|
||||
toolbarsVisible : true,
|
||||
mode : 'democratic'
|
||||
mode : 'democratic',
|
||||
selectedPeerName : null
|
||||
};
|
||||
|
||||
const room = (state = initialState, action) =>
|
||||
@@ -70,6 +71,9 @@ const room = (state = initialState, action) =>
|
||||
case 'SET_DISPLAY_MODE':
|
||||
return { ...state, mode: action.payload.mode };
|
||||
|
||||
case 'SET_SELECTED_PEER':
|
||||
return { ...state, selectedPeerName: action.payload.selectedPeerName };
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -472,4 +472,9 @@ export const setPeerPicture = (peerName, picture) =>
|
||||
export const loggedIn = () =>
|
||||
({
|
||||
type : 'LOGGED_IN'
|
||||
});
|
||||
});
|
||||
|
||||
export const setSelectedPeer = (selectedPeerName) => ({
|
||||
type : 'SET_SELECTED_PEER',
|
||||
payload : { selectedPeerName }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user