fix(rn,call-integration) use a more reliable event for starting

The will-join event happens before we actually try to join and things
would go wrong, whereas join-in-progress happens when it's guaranteed
that joining will be successful.
This commit is contained in:
Saúl Ibarra Corretgé
2024-10-30 11:56:42 +01:00
committed by Saúl Ibarra Corretgé
parent e2a933ad92
commit 6fea2a4638

View File

@@ -11,8 +11,8 @@ import { SET_AUDIO_ONLY } from '../../base/audio-only/actionTypes';
import {
CONFERENCE_FAILED,
CONFERENCE_JOINED,
CONFERENCE_JOIN_IN_PROGRESS,
CONFERENCE_LEFT,
CONFERENCE_WILL_JOIN,
CONFERENCE_WILL_LEAVE
} from '../../base/conference/actionTypes';
import {
@@ -77,7 +77,7 @@ CallIntegration && MiddlewareRegistry.register(store => next => action => {
case CONFERENCE_WILL_LEAVE:
return _conferenceLeft(store, next, action);
case CONFERENCE_WILL_JOIN:
case CONFERENCE_JOIN_IN_PROGRESS:
return _conferenceWillJoin(store, next, action);
case SET_AUDIO_ONLY: