feat(whiteboard): use jitsi room name for socket io connection (#12610)
This commit is contained in:
parent
a0c130568b
commit
95b2979eb3
|
@ -8,7 +8,7 @@ import { participantJoined, participantLeft, pinParticipant } from '../base/part
|
||||||
import { FakeParticipant } from '../base/participants/types';
|
import { FakeParticipant } from '../base/participants/types';
|
||||||
import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
|
import MiddlewareRegistry from '../base/redux/MiddlewareRegistry';
|
||||||
import StateListenerRegistry from '../base/redux/StateListenerRegistry';
|
import StateListenerRegistry from '../base/redux/StateListenerRegistry';
|
||||||
// @ts-ignore
|
import { getCurrentRoomId } from '../breakout-rooms/functions';
|
||||||
import { addStageParticipant } from '../filmstrip/actions.web';
|
import { addStageParticipant } from '../filmstrip/actions.web';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { isStageFilmstripAvailable } from '../filmstrip/functions';
|
import { isStageFilmstripAvailable } from '../filmstrip/functions';
|
||||||
|
@ -56,8 +56,13 @@ MiddlewareRegistry.register((store: IStore) => (next: Function) => async (action
|
||||||
const existingCollabDetails = getCollabDetails(state);
|
const existingCollabDetails = getCollabDetails(state);
|
||||||
|
|
||||||
if (!existingCollabDetails) {
|
if (!existingCollabDetails) {
|
||||||
const collabDetails = await generateCollaborationLinkData();
|
const collabLinkData = await generateCollaborationLinkData();
|
||||||
const collabServerUrl = getCollabServerUrl(state);
|
const collabServerUrl = getCollabServerUrl(state);
|
||||||
|
const roomId = getCurrentRoomId(state);
|
||||||
|
const collabDetails = {
|
||||||
|
roomId,
|
||||||
|
roomKey: collabLinkData.roomKey
|
||||||
|
};
|
||||||
|
|
||||||
focusWhiteboard(store);
|
focusWhiteboard(store);
|
||||||
dispatch(setupWhiteboard({ collabDetails }));
|
dispatch(setupWhiteboard({ collabDetails }));
|
||||||
|
|
Loading…
Reference in New Issue