fix(chat): no loading bar when a cached chat refreshes
- the bar and "Loading messages ..." show only for a chat without cached messages - a cached chat refreshes silently like Teams; a failed refresh still shows "Not up to date" Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@@ -2022,7 +2022,7 @@ impl ConversationView {
2022
2022
let Some(sync) = self.sync_of(generation) else {
2023
2023
return false;
2024
2024
};
2025
if !sync.running() {
2025
if !sync.running() || !sync.empty_cache {
2026
2026
return false;
2027
2027
}
2028
2028
match stage {
@@ -3819,14 +3819,7 @@ impl ConversationView {
3819
3819
} else if loading_window {
3820
3820
subline = "Loading message ...".to_owned();
3821
3821
} else if sync.shown_at.is_some() {
3822
subline = if sync.slow {
3823
"Taking longer than usual ..."
3824
} else if sync.empty_cache {
3825
"Loading messages ..."
3826
} else {
3827
"Updating ..."
3828
}
3829
.to_owned();
3822
subline = if sync.slow { "Taking longer than usual ..." } else { "Loading messages ..." }.to_owned();
3830
3823
}
3831
3824
let inline_tabs = tabs.map(|tabs| h_flex().h_full().flex_1().child(tabs));
3832
3825
let overflow = self.header_overflows();
@@ -2022,7 +2022,7 @@ impl ConversationView {2022
let Some(sync) = self.sync_of(generation) else {2022
let Some(sync) = self.sync_of(generation) else {2023
return false;2023
return false;2024
};2024
};2025
if !sync.running() {2025
if !sync.running() || !sync.empty_cache {2026
return false;2026
return false;2027
}2027
}2028
match stage {2028
match stage {@@ -3819,14 +3819,7 @@ impl ConversationView {3819
} else if loading_window {3819
} else if loading_window {3820
subline = "Loading message ...".to_owned();3820
subline = "Loading message ...".to_owned();3821
} else if sync.shown_at.is_some() {3821
} else if sync.shown_at.is_some() {3822
subline = if sync.slow {3822
subline = if sync.slow { "Taking longer than usual ..." } else { "Loading messages ..." }.to_owned();3823
"Taking longer than usual ..."3824
} else if sync.empty_cache {3825
"Loading messages ..."3826
} else {3827
"Updating ..."3828
}3829
.to_owned();3830
}3823
}3831
let inline_tabs = tabs.map(|tabs| h_flex().h_full().flex_1().child(tabs));3824
let inline_tabs = tabs.map(|tabs| h_flex().h_full().flex_1().child(tabs));3832
let overflow = self.header_overflows();3825
let overflow = self.header_overflows();