|
@@ -31,17 +31,18 @@ MiddlewareRegistry.register(store => next => action => {
|
31
|
31
|
// Check if we just came back from the background and reenable full
|
32
|
32
|
// screen mode if necessary.
|
33
|
33
|
if (action.appState === 'active') {
|
34
|
|
- const conference = store.getState()['features/base/conference'];
|
|
34
|
+ const { conference, audioOnly }
|
|
35
|
+ = store.getState()['features/base/conference'];
|
35
|
36
|
|
36
|
|
- fullScreen = conference ? !conference.audioOnly : false;
|
|
37
|
+ fullScreen = conference ? !audioOnly : false;
|
37
|
38
|
}
|
38
|
39
|
break;
|
39
|
40
|
}
|
40
|
41
|
|
41
|
42
|
case CONFERENCE_WILL_JOIN: {
|
42
|
|
- const conference = store.getState()['features/base/conference'];
|
|
43
|
+ const { audioOnly } = store.getState()['features/base/conference'];
|
43
|
44
|
|
44
|
|
- fullScreen = !conference.audioOnly;
|
|
45
|
+ fullScreen = !audioOnly;
|
45
|
46
|
break;
|
46
|
47
|
}
|
47
|
48
|
|