Skip to content

Commit

Permalink
Merge pull request #943 from frankemax/942-join
Browse files Browse the repository at this point in the history
fix(join): fetch data with redirect
  • Loading branch information
frankemax authored Sep 25, 2024
2 parents 8eed0dd + 54436ed commit f0b9432
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/graphql/hooks/use-join-meeting.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const useJoinMeeting = (url) => {
if (data.status === 200) {
setUrlWithSessionId(data.url);
setLocalSessionToken(UrlUtils.parseQueryString(data.url).sessionToken);
setLocalHost(UrlUtils.getHostFromUrl(url));
dispatch(setJoinUrl(url));
dispatch(setHost(UrlUtils.getHostFromUrl(url)));
setLocalHost(UrlUtils.getHostFromUrl(data.url));
dispatch(setJoinUrl(data.url));
dispatch(setHost(UrlUtils.getHostFromUrl(data.url)));
dispatch(setSessionToken(UrlUtils.parseQueryString(data.url).sessionToken));
console.log('DONE STAGE 0');
setLoginStage(1);
Expand Down Expand Up @@ -166,7 +166,7 @@ const useJoinMeeting = (url) => {
},
on: {
error: (error) => {
console.error(`Error: on subscription to server: ${error}`);
console.error(`Error: on subscription to server: ${JSON.stringify(error, null, 2)}`);
},
closed: () => {
console.error('socket closed');
Expand Down

0 comments on commit f0b9432

Please sign in to comment.