diff --git a/src/global/actions/apiUpdaters/calls.ts b/src/global/actions/apiUpdaters/calls.ts index 36adc3099..e1ba9abb9 100644 --- a/src/global/actions/apiUpdaters/calls.ts +++ b/src/global/actions/apiUpdaters/calls.ts @@ -77,15 +77,12 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => { if (phoneCall) { if (call.state === 'discarded') { actions.playGroupCallSound({ sound: 'end' }); - global = { + actions.hangUp({ tabId: getCurrentTabId() }); + + return { ...global, ...(call.needRating && { ratingPhoneCall: call }), - phoneCall: undefined, }; - - return updateTabState(global, { - isCallPanelVisible: undefined, - }, getCurrentTabId()); } return undefined;