mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Implement better call window UI
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}))
|
||||
}));
|
||||
Reference in New Issue
Block a user