Added lastN to global state

This commit is contained in:
Håvar Aambø Fosstveit committed 2018-10-24 13:03:05 +02:00
1 parent 5233debdfa
commit a4b70ebaff
3 files changed
+23 -5

No files matched your search

+9 -1
View File
@@ -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;
}