audio-only,lastn: move audio-only and last N handling to standalone features

This refactors all handling of audio-only and last N to 2 features in preparation
for "low bandwidth mode".

The main motivation to do this is that lastN is a "global" setting so it helps
to have all processing for it in a single place.
This commit is contained in:
Saúl Ibarra Corretgé
2019-07-31 14:47:52 +02:00
committed by Saúl Ibarra Corretgé
parent 6ddd17c769
commit 467c9d36cf
35 changed files with 422 additions and 394 deletions

View File

@@ -71,7 +71,7 @@ class ToggleCameraButton extends AbstractButton<Props, *> {
* }}
*/
function _mapStateToProps(state): Object {
const { audioOnly } = state['features/base/conference'];
const { enabled: audioOnly } = state['features/base/audio-only'];
const tracks = state['features/base/tracks'];
return {