-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(prosody-auth): Don't loose initial tracks. #14358
Changes from all commits
3f663bd
c602d77
ccf6c9a
930503e
944d1b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ import LocalRecordingManager from '../../recording/components/Recording/LocalRec | |
import { iAmVisitor } from '../../visitors/functions'; | ||
import { overwriteConfig } from '../config/actions'; | ||
import { CONNECTION_ESTABLISHED, CONNECTION_FAILED } from '../connection/actionTypes'; | ||
import { connect, connectionDisconnected, disconnect } from '../connection/actions'; | ||
import { connectionDisconnected, disconnect } from '../connection/actions'; | ||
import { validateJwt } from '../jwt/functions'; | ||
import { JitsiConferenceErrors, JitsiConferenceEvents, JitsiConnectionErrors } from '../lib-jitsi-meet'; | ||
import { PARTICIPANT_UPDATED, PIN_PARTICIPANT } from '../participants/actionTypes'; | ||
|
@@ -37,7 +37,6 @@ import { | |
import MiddlewareRegistry from '../redux/MiddlewareRegistry'; | ||
import StateListenerRegistry from '../redux/StateListenerRegistry'; | ||
import { TRACK_ADDED, TRACK_REMOVED } from '../tracks/actionTypes'; | ||
import { getLocalTracks } from '../tracks/functions.any'; | ||
|
||
import { | ||
CONFERENCE_FAILED, | ||
|
@@ -209,17 +208,7 @@ function _conferenceFailed({ dispatch, getState }: IStore, next: Function, actio | |
dispatch(conferenceWillLeave(conference)); | ||
|
||
conference.leave() | ||
.then(() => dispatch(disconnect())) | ||
.then(() => dispatch(connect())) | ||
.then(() => { | ||
// FIXME: Workaround for the web version. To be removed once we get rid of conference.js | ||
if (typeof APP !== 'undefined') { | ||
const localTracks = getLocalTracks(getState()['features/base/tracks']); | ||
const jitsiTracks = localTracks.map((t: any) => t.jitsiTrack); | ||
|
||
APP.conference.startConference(jitsiTracks).catch(logger.error); | ||
} | ||
}); | ||
.then(() => dispatch(disconnect())); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When will the connection begin again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see some of the logic got moved to base/conference, but only to the web middleware. When does mobile start connecting again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we decided with @damencho to remove the reconnect in order not to flood the infrastructure with reconnects. IIRC the UX now will be that the user will see an error and can reload or press the Join button again. |
||
} | ||
|
||
break; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't need to be. It doesn't even need access to the store so it doesn't even need to be async.
You could rewrite this to take the store as a parameter and just call it, since it's not really an action. Then in there you can batch-dispatch the actual actions.