Some cleanup.

This commit is contained in:
Håvar Aambø Fosstveit
2019-10-25 23:43:59 +02:00
parent cacc9abf7c
commit bb8cf02c23
5 changed files with 80 additions and 32 deletions
+1 -6
View File
@@ -321,12 +321,7 @@ export default class RoomClient
const { displayName, picture } = data;
if (store.getState().room.joined || store.getState().room.inLobby)
{
this.changeDisplayName(displayName);
this.changeProfilePicture(picture);
}
store.dispatch(stateActions.setDisplayName(displayName));
store.dispatch(stateActions.setPicture(picture));
store.dispatch(stateActions.loggedIn());