mostly revert last commit :(
parent
d49ef4e65f
commit
f204ff0222
|
|
@ -658,8 +658,6 @@ export default class RoomClient
|
||||||
stateActions.addLobbyPeer(peer.peerId));
|
stateActions.addLobbyPeer(peer.peerId));
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
stateActions.setLobbyPeerDisplayName(peer.displayName));
|
stateActions.setLobbyPeerDisplayName(peer.displayName));
|
||||||
store.dispatch(
|
|
||||||
stateActions.setLobbyPeerPicture(peer.picture));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
(accessCode != null) && store.dispatch(
|
(accessCode != null) && store.dispatch(
|
||||||
|
|
@ -1417,21 +1415,6 @@ export default class RoomClient
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'lobby:changePicture':
|
|
||||||
{
|
|
||||||
const { peerId, picture } = notification.data;
|
|
||||||
|
|
||||||
store.dispatch(
|
|
||||||
stateActions.setLobbyPeerPicture(picture, peerId));
|
|
||||||
|
|
||||||
store.dispatch(requestActions.notify(
|
|
||||||
{
|
|
||||||
text : `Participant in lobby changed picture.`
|
|
||||||
}));
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case 'setAccessCode':
|
case 'setAccessCode':
|
||||||
{
|
{
|
||||||
const { accessCode } = notification.data;
|
const { accessCode } = notification.data;
|
||||||
|
|
|
||||||
|
|
@ -461,14 +461,6 @@ export const setLobbyPeerDisplayName = (displayName, peerId) =>
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export const setLobbyPeerPicture = (picture, peerId) =>
|
|
||||||
{
|
|
||||||
return {
|
|
||||||
type : 'SET_LOBBY_PEER_PICTURE',
|
|
||||||
payload : { picture, peerId }
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export const setLobbyPeerPromotionInProgress = (peerId, flag) =>
|
export const setLobbyPeerPromotionInProgress = (peerId, flag) =>
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,6 @@ const lobbyPeer = (state = {}, action) =>
|
||||||
case 'SET_LOBBY_PEER_DISPLAY_NAME':
|
case 'SET_LOBBY_PEER_DISPLAY_NAME':
|
||||||
return { ...state, displayName: action.payload.displayName };
|
return { ...state, displayName: action.payload.displayName };
|
||||||
|
|
||||||
case 'SET_LOBBY_PEER_PICTURE':
|
|
||||||
return { ...state, picture: action.payload.picture };
|
|
||||||
|
|
||||||
case 'SET_LOBBY_PEER_PROMOTION_IN_PROGRESS':
|
case 'SET_LOBBY_PEER_PROMOTION_IN_PROGRESS':
|
||||||
return { ...state, promotionInProgress: action.payload.flag };
|
return { ...state, promotionInProgress: action.payload.flag };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue