Skip to content

Commit

Permalink
fix(rn,call-integration) use a more reliable event for starting
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
saghul committed Oct 30, 2024
1 parent e2a933a commit 0d1be29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/features/mobile/call-integration/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0d1be29

Please sign in to comment.