Fix missing picture on peer in lobby.
parent
717c0053e5
commit
c73ee5c26b
|
|
@ -2124,15 +2124,21 @@ export default class RoomClient
|
||||||
lobbyPeers.forEach((peer) =>
|
lobbyPeers.forEach((peer) =>
|
||||||
{
|
{
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
lobbyPeerActions.addLobbyPeer(peer.peerId));
|
lobbyPeerActions.addLobbyPeer(peer.id));
|
||||||
|
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
lobbyPeerActions.setLobbyPeerDisplayName(
|
lobbyPeerActions.setLobbyPeerDisplayName(
|
||||||
peer.displayName,
|
peer.displayName,
|
||||||
peer.peerId
|
peer.id
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
lobbyPeerActions.setLobbyPeerPicture(peer.picture));
|
lobbyPeerActions.setLobbyPeerPicture(
|
||||||
|
peer.picture,
|
||||||
|
peer.id
|
||||||
|
)
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
|
|
@ -2930,11 +2936,11 @@ export default class RoomClient
|
||||||
(lobbyPeers.length > 0) && lobbyPeers.forEach((peer) =>
|
(lobbyPeers.length > 0) && lobbyPeers.forEach((peer) =>
|
||||||
{
|
{
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
lobbyPeerActions.addLobbyPeer(peer.peerId));
|
lobbyPeerActions.addLobbyPeer(peer.id));
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
lobbyPeerActions.setLobbyPeerDisplayName(peer.displayName, peer.peerId));
|
lobbyPeerActions.setLobbyPeerDisplayName(peer.displayName, peer.id));
|
||||||
store.dispatch(
|
store.dispatch(
|
||||||
lobbyPeerActions.setLobbyPeerPicture(peer.picture));
|
lobbyPeerActions.setLobbyPeerPicture(peer.picture, peer.id));
|
||||||
});
|
});
|
||||||
|
|
||||||
(accessCode != null) && store.dispatch(
|
(accessCode != null) && store.dispatch(
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class Lobby extends EventEmitter
|
||||||
|
|
||||||
return Object.values(this._peers).map((peer) =>
|
return Object.values(this._peers).map((peer) =>
|
||||||
({
|
({
|
||||||
peerId : peer.id,
|
id : peer.id,
|
||||||
displayName : peer.displayName,
|
displayName : peer.displayName,
|
||||||
picture : peer.picture
|
picture : peer.picture
|
||||||
}));
|
}));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue