Calls: Fix microphone indicator not hiding after hang up (#2346)

This commit is contained in:
Alexander Zinchuk 2023-01-28 02:15:29 +01:00
parent 2a7c78c12a
commit 568e98a083

View File

@ -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;