Skip to content

Commit

Permalink
HUD Invite button: fixes bug re: invite-only rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
DougReeder committed Oct 7, 2024
1 parent 56e82e3 commit 280468a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/in-world-hud.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ AFRAME.registerComponent("in-world-hud", {

this.onInviteClick = async (event) => {
try {
const extraParams = APP.hub.entry_mode === "invite" ? {hub_invite_id: APP.hubChannel.fetchInvite()} : {};
const extraParams = APP.hub.entry_mode === "invite" ?
{hub_invite_id: (await APP.hubChannel.fetchInvite()).hub_invite_id} :
{};
const url = hubUrl(APP.hub.hub_id, extraParams).href;
await shareInviteUrl(null, url, { roomName: APP.hub.name, appName: configs.translation("app-name") }, true, event);
await handleExitTo2DInterstitial(true, () => {});
Expand Down

0 comments on commit 280468a

Please sign in to comment.