aboutsummaryrefslogtreecommitdiff
path: root/app/features/settings/reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/features/settings/reducer.js')
-rw-r--r--app/features/settings/reducer.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/app/features/settings/reducer.js b/app/features/settings/reducer.js
index b30c9f9..f95c679 100644
--- a/app/features/settings/reducer.js
+++ b/app/features/settings/reducer.js
@@ -3,6 +3,7 @@
import { getAvatarURL } from 'js-utils';
import {
+ SET_ALWAYS_ON_TOP_WINDOW_ENABLED,
SET_AUDIO_MUTED,
SET_AVATAR_URL,
SET_EMAIL,
@@ -17,7 +18,8 @@ type State = {
name: string,
serverURL: ?string,
startWithAudioMuted: boolean,
- startWithVideoMuted: boolean
+ startWithVideoMuted: boolean,
+ alwaysOnTopWindowEnabled: boolean,
};
const username = window.jitsiNodeAPI.osUserInfo().username;
@@ -28,7 +30,8 @@ const DEFAULT_STATE = {
name: username,
serverURL: undefined,
startWithAudioMuted: false,
- startWithVideoMuted: false
+ startWithVideoMuted: false,
+ alwaysOnTopWindowEnabled: true
};
/**
@@ -40,6 +43,12 @@ const DEFAULT_STATE = {
*/
export default (state: State = DEFAULT_STATE, action: Object) => {
switch (action.type) {
+ case SET_ALWAYS_ON_TOP_WINDOW_ENABLED:
+ return {
+ ...state,
+ alwaysOnTopWindowEnabled: action.alwaysOnTopWindowEnabled
+ };
+
case SET_AUDIO_MUTED:
return {
...state,