Calls: Fix microphone indicator not hiding after hang up (#2346)
This commit is contained in:
parent
2a7c78c12a
commit
568e98a083
@ -77,15 +77,12 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
|
|||||||
if (phoneCall) {
|
if (phoneCall) {
|
||||||
if (call.state === 'discarded') {
|
if (call.state === 'discarded') {
|
||||||
actions.playGroupCallSound({ sound: 'end' });
|
actions.playGroupCallSound({ sound: 'end' });
|
||||||
global = {
|
actions.hangUp({ tabId: getCurrentTabId() });
|
||||||
|
|
||||||
|
return {
|
||||||
...global,
|
...global,
|
||||||
...(call.needRating && { ratingPhoneCall: call }),
|
...(call.needRating && { ratingPhoneCall: call }),
|
||||||
phoneCall: undefined,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return updateTabState(global, {
|
|
||||||
isCallPanelVisible: undefined,
|
|
||||||
}, getCurrentTabId());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user