Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions viewer/openworlds/screen-launcher.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ function ScreenLauncher({ onNavigate, state, setState }) {
const target = c || playableCampaign;
if (!target) return;
setState((s) => ({ ...s, activeCampaign: target.id }));
// #356: in the native app a canResume-but-not-yet-live campaign has NO attached DM, so navigating
// straight to the table lands in the read-only director's view. Mint a provider session via the
// bridge (the startPlay path, exactly as onResume does). Only drop straight into the table when the
// session is ALREADY live (an in-browser already-live run, or a browser preview with no bridge).
if (window.OpenWorldsNative?.hasBridge?.() && !target.live) {
startPlay(target.world);
return;
}
onNavigate("table");
};

Expand Down
Loading