fix(desktop): fechar hub sem sessoes
All checks were successful
All checks were successful
This commit is contained in:
parent
394fa9e2a3
commit
43017e6fef
1 changed files with 6 additions and 0 deletions
|
|
@ -947,6 +947,12 @@ async fn process_chat_update(
|
|||
}),
|
||||
);
|
||||
|
||||
if current_sessions.is_empty() {
|
||||
close_all_chat_windows(app);
|
||||
let _ = close_hub_window(app);
|
||||
return;
|
||||
}
|
||||
|
||||
// Notificar novas mensagens - mostrar chat minimizado com badge
|
||||
if new_messages && total_unread > 0 {
|
||||
let new_count = if total_unread > prev_unread {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue