fix: blank Voice tab covers a shared chat opened during a call (#34250)

Opening a chat someone shared with you under "Allow replies" while your own voice call was running ended the call as intended, but left an empty Voice tab open in front of the chat, so the chat stayed hidden until you switched tabs. The Voice tab now closes along with the call, so the shared chat shows straight away.

Fixes #34249
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-12 21:16:29 +09:00
1 parent 2547992b8a
commit 1fcec81fdd
1 file changed
+2
+2
View File
@@ -1491,6 +1491,8 @@
showEmbeds.set(false);
}
$: if (viewReady && $showCallOverlay) openFeature('voice');
$: if (viewReady && !$showCallOverlay && tabs.tabs.some((tab) => tab.kind === 'voice'))
closeTab('voice');
$: if (viewReady && $showTabs === 'voice') openFeature('voice');
$: if (viewReady && $showFileNav) {
const request = $showFileNav;