Properly handle wakelock, fixes #237

This commit is contained in:
Håvar Aambø Fosstveit
2020-04-22 10:01:58 +02:00
parent e28b6cdc5d
commit 1cef52a3a1
7 changed files with 29 additions and 24 deletions
+5 -3
View File
@@ -2,7 +2,7 @@ const initialState =
{
id : null,
picture : null,
isMobile : false,
browser : null,
roles : [ 'normal' ], // Default role
canSendMic : false,
canSendWebcam : false,
@@ -39,9 +39,11 @@ const me = (state = initialState, action) =>
};
}
case 'SET_IS_MOBILE':
case 'SET_BROWSER':
{
return { ...state, isMobile: true };
const { browser } = action.payload;
return { ...state, browser };
}
case 'LOGGED_IN':