startCall: wait for startOutgoingDirectCall before updating lobby
This commit is contained in:
@@ -1220,7 +1220,7 @@ function startCall(
|
||||
return async (dispatch, getState) => {
|
||||
switch (payload.callMode) {
|
||||
case CallMode.Direct:
|
||||
calling.startOutgoingDirectCall(
|
||||
await calling.startOutgoingDirectCall(
|
||||
payload.conversationId,
|
||||
payload.hasLocalAudio,
|
||||
payload.hasLocalVideo
|
||||
|
@@ -1904,9 +1904,9 @@ describe('calling duck', () => {
|
||||
sinon.assert.notCalled(this.callingStartOutgoingDirectCall);
|
||||
});
|
||||
|
||||
it('saves direct calls and makes them active', () => {
|
||||
it('saves direct calls and makes them active', async () => {
|
||||
const dispatch = sinon.spy();
|
||||
startCall({
|
||||
await startCall({
|
||||
callMode: CallMode.Direct,
|
||||
conversationId: 'fake-conversation-id',
|
||||
hasLocalAudio: true,
|
||||
|
Reference in New Issue
Block a user