This commit is contained in:
2025-10-13 20:48:35 +03:00
Unverified
parent 198ed49c80
commit bcf445916c
12 changed files with 225 additions and 300 deletions
@@ -88,11 +88,9 @@ export function CallWindow() {
} else {
if (shouldRender) {
// Call ended - start exit animation
console.log(`Call ended - starting exit animation. Was minimized: ${wasMinimized}`);
setIsVisible(false);
// After animation completes, stop rendering
const timer = setTimeout(() => {
console.log("Exit animation complete, removing window");
setShouldRender(false);
setCallData(null);
setWasMinimized(false);
@@ -195,12 +193,6 @@ export function CallWindow() {
left: pipPosition.x,
top: pipPosition.y
} : undefined}
ref={(el) => {
if (el && !isVisible) {
console.log(`Window classes: ${el.className}`);
console.log(`Window state - was minimized: ${wasMinimized}, visible: ${isVisible}`);
}
}}
onMouseDown={(e) => {
if (call.isMinimized) {
// Only start dragging if not clicking on a button
@@ -6,7 +6,7 @@ import {
sendDmWithFiles,
editDmEnvelope,
deleteDmEnvelope
} from "../../../../../core/api/dmApi";
} from "@/core/api/dmApi";
import type { DmEncryptedJSON, DmEnvelope, DMWebSocketMessage, EncryptedMessageJson, Message } from "@/core/types";
import type { UserState } from "@/pages/chat/state";