Implement better call window UI

This commit is contained in:
2025-10-11 16:01:06 +03:00
Unverified
parent 3575fb3752
commit e1960d9e58
3 changed files with 460 additions and 348 deletions
+10
View File
@@ -87,6 +87,7 @@ interface AppState {
toggleScreenShare: () => void;
setRemoteVideoEnabled: (enabled: boolean) => void;
setRemoteScreenSharing: (enabled: boolean) => void;
toggleCallMinimized: () => void;
// User state
user: UserState;
@@ -567,5 +568,14 @@ export const useAppState = create<AppState>((set, get) => ({
isRemoteScreenSharing: enabled
}
}
})),
toggleCallMinimized: () => set((state) => ({
chat: {
...state.chat,
call: {
...state.chat.call,
isMinimized: !state.chat.call.isMinimized
}
}
}))
}));