fix: correct component declaration in ChatWindow for call handling

- Updated the ChatWindow component to ensure proper declaration of the CallWindowComponent, enhancing the functionality of audio/video calls.
- This change resolves an issue with the component rendering logic during active calls.
This commit is contained in:
2025-11-21 13:22:12 -03:00
parent 2792424454
commit c5e83464ba

View File

@@ -502,8 +502,8 @@
<!-- Janela de Chamada --> <!-- Janela de Chamada -->
{#if browser && chamadaAtiva && chamadaAtual && CallWindowComponent} {#if browser && chamadaAtiva && chamadaAtual && CallWindowComponent}
<div class="pointer-events-none fixed inset-0 z-[9999]">
{@const Component = CallWindowComponent} {@const Component = CallWindowComponent}
<div class="pointer-events-none fixed inset-0 z-[9999]">
<Component <Component
chamadaId={chamadaAtiva} chamadaId={chamadaAtiva}
conversaId={conversaId as Id<'conversas'>} conversaId={conversaId as Id<'conversas'>}