mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* feat: Drops connection on prejoin screen. Refactors connection logic to reuse already existing logic from mobile. Connection is now established just before joining the room. Fixes some authentication logic with Login and Logout button in Profile tab. * squash: Drops createInitialLocalTracksAndConnect as it no longer connects. * squash: Shows an error on mobile and redirects to default. * squash: Fixes review comments. * squash: Fixes joining with prejoin disabled. * squash: Fixes adding initial local tracks. * squash: Fixes comments. * squash: Drop no longer used method. * squash: Fixes old web code imported into mobile builds. * squash: Drop unused prop. * squash: Drops recoverable flag on REDIRECT. * squash: Drops unused variable and fix connection access. * squash: Xmpp connect returns promise again. * squash: Execute xmpp connect and creating local tracks in parallel. * squash: Moves notification about problem jwt. * squash: Moves startConference to conference.js for the no prejoin case. And move the startConference in prejoin feature for the prejoin case. * squash: Fix passing filtered tracks when starting conference with no prejoin. * squash: Fix clearing listeners on connection established. Keeps mobile behaviour after merging web and mobile. * squash: Drops unused code.
31 lines
736 B
TypeScript
31 lines
736 B
TypeScript
import MiddlewareRegistry from '../redux/MiddlewareRegistry';
|
|
|
|
import { CONNECTION_WILL_CONNECT } from './actionTypes';
|
|
|
|
/**
|
|
* The feature announced so we can distinguish jibri participants.
|
|
*
|
|
* @type {string}
|
|
*/
|
|
export const DISCO_JIBRI_FEATURE = 'http://jitsi.org/protocol/jibri';
|
|
|
|
MiddlewareRegistry.register(({ getState }) => next => action => {
|
|
switch (action.type) {
|
|
case CONNECTION_WILL_CONNECT: {
|
|
const { connection } = action;
|
|
const { iAmRecorder } = getState()['features/base/config'];
|
|
|
|
if (iAmRecorder) {
|
|
connection.addFeature(DISCO_JIBRI_FEATURE);
|
|
}
|
|
|
|
// @ts-ignore
|
|
APP.connection = connection;
|
|
|
|
break;
|
|
}
|
|
}
|
|
|
|
return next(action);
|
|
});
|