Fixed update picture / displayName finally (hopefully)

This commit is contained in:
Stefan Otto
2019-10-31 15:30:20 +01:00
parent 87bcd3a895
commit aac2e5f918
3 changed files with 35 additions and 1 deletions
+3 -1
View File
@@ -7,7 +7,8 @@ const lobbyPeer = (state = {}, action) =>
case 'SET_LOBBY_PEER_DISPLAY_NAME':
return { ...state, displayName: action.payload.displayName };
case 'SET_LOBBY_PEER_PICTURE':
return { ...state, picture: action.payload.picture };
case 'SET_LOBBY_PEER_PROMOTION_IN_PROGRESS':
return { ...state, promotionInProgress: action.payload.flag };
@@ -36,6 +37,7 @@ const lobbyPeers = (state = {}, action) =>
}
case 'SET_LOBBY_PEER_DISPLAY_NAME':
case 'SET_LOBBY_PEER_PICTURE':
case 'SET_LOBBY_PEER_PROMOTION_IN_PROGRESS':
{
const oldLobbyPeer = state[action.payload.peerId];