Properly handle login/logout.

This commit is contained in:
Håvar Aambø Fosstveit
2019-11-04 23:29:54 +01:00
parent d3d3e9626e
commit 98caed6e4a
5 changed files with 80 additions and 23 deletions
+11 -2
View File
@@ -165,6 +165,14 @@ export const setDisplayName = (displayName) =>
};
};
export const setDisplayNameInProgress = (flag) =>
{
return {
type : 'SET_DISPLAY_NAME_IN_PROGRESS',
payload : { flag }
};
};
export const toggleAdvancedMode = () =>
{
return {
@@ -641,9 +649,10 @@ export const setPeerPicture = (peerId, picture) =>
payload : { peerId, picture }
});
export const loggedIn = () =>
export const loggedIn = (flag) =>
({
type : 'LOGGED_IN'
type : 'LOGGED_IN',
payload : { flag }
});
export const toggleJoined = () =>