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