Ajusta auto-minimização do chat web e unifica realtime no desktop
This commit is contained in:
parent
c65e37e232
commit
3d45fe3b04
10 changed files with 279 additions and 635 deletions
|
|
@ -11,7 +11,6 @@ import { cn } from "./lib/utils"
|
|||
import { ChatApp } from "./chat"
|
||||
import { DeactivationScreen } from "./components/DeactivationScreen"
|
||||
import type { SessionStartedEvent, UnreadUpdateEvent, NewMessageEvent, SessionEndedEvent } from "./chat/types"
|
||||
import { subscribeMachineUpdates } from "./chat/convexMachineClient"
|
||||
|
||||
type MachineOs = {
|
||||
name: string
|
||||
|
|
@ -1084,7 +1083,8 @@ const resolvedAppUrl = useMemo(() => {
|
|||
}
|
||||
}, [token])
|
||||
|
||||
// Assinatura direta no Convex para abrir/minimizar chat quando houver novas mensagens
|
||||
/* Assinatura direta no Convex para abrir/minimizar chat quando houver novas mensagens
|
||||
* (desativada: o Rust ja gerencia realtime via WS e eventos Tauri)
|
||||
useEffect(() => {
|
||||
if (!token) return
|
||||
|
||||
|
|
@ -1131,6 +1131,7 @@ const resolvedAppUrl = useMemo(() => {
|
|||
unsub?.()
|
||||
}
|
||||
}, [token, attemptSelfHeal])
|
||||
*/
|
||||
|
||||
async function register() {
|
||||
if (!profile) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue