Remove map preview sending and fix initial player map load

This commit is contained in:
Mitchell McCaffrey
2021-04-24 12:39:04 +10:00
parent 245a9cee43
commit 9a9b778f04
3 changed files with 96 additions and 89 deletions
-5
View File
@@ -9,7 +9,6 @@ import { useParty } from "../contexts/PartyContext";
import { useAssets } from "../contexts/AssetsContext";
import { omit } from "../helpers/shared";
import { getMapPreviewAsset } from "../helpers/map";
import useDebounce from "../hooks/useDebounce";
import useNetworkedState from "../hooks/useNetworkedState";
@@ -72,10 +71,6 @@ function NetworkedMapAndTokens({ session }) {
const assets = {};
const { owner } = map;
if (map.type === "file") {
const previewId = getMapPreviewAsset(map);
if (previewId) {
assets[previewId] = { id: previewId, owner };
}
const qualityId = map.resolutions[map.quality];
if (qualityId) {
assets[qualityId] = { id: qualityId, owner };