feat(whiteboard): use jitsi room name for socket io connection (#12610)

This commit is contained in:
Mihaela Dumitru 2022-11-24 14:20:40 +02:00 committed by GitHub
parent a0c130568b
commit 95b2979eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -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 }));