Added lastN to global state
This commit is contained in:
@@ -8,7 +8,8 @@ const initialState =
|
||||
fullScreenConsumer : null, // ConsumerID
|
||||
toolbarsVisible : true,
|
||||
mode : 'democratic',
|
||||
selectedPeerName : null
|
||||
selectedPeerName : null,
|
||||
lastN : null
|
||||
};
|
||||
|
||||
const room = (state = initialState, action) =>
|
||||
@@ -83,6 +84,13 @@ const room = (state = initialState, action) =>
|
||||
};
|
||||
}
|
||||
|
||||
case 'SET_LASTN':
|
||||
{
|
||||
const { lastN } = action.payload;
|
||||
|
||||
return { ...state, lastN };
|
||||
}
|
||||
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user