startCall: wait for startOutgoingDirectCall before updating lobby
This commit is contained in:
parent
b066d04817
commit
bb250d4fb5
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue