diff --git a/ts/state/ducks/calling.ts b/ts/state/ducks/calling.ts index 62a571a410..2cd879d2b3 100644 --- a/ts/state/ducks/calling.ts +++ b/ts/state/ducks/calling.ts @@ -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 diff --git a/ts/test-electron/state/ducks/calling_test.ts b/ts/test-electron/state/ducks/calling_test.ts index 497c5551f0..e738603dbd 100644 --- a/ts/test-electron/state/ducks/calling_test.ts +++ b/ts/test-electron/state/ducks/calling_test.ts @@ -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,