mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 14:06:11 +03:00
Render chat panel messages even if connection is lost
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
ec7c6f3f91
commit
c2e9aa1b54
@ -381,9 +381,10 @@ impl View for ChatPanel {
|
||||
|
||||
fn render(&mut self, cx: &mut RenderContext<Self>) -> ElementBox {
|
||||
let theme = &self.settings.borrow().theme;
|
||||
let element = match *self.rpc.status().borrow() {
|
||||
rpc::Status::Connected { .. } => self.render_channel(),
|
||||
_ => self.render_sign_in_prompt(cx),
|
||||
let element = if self.rpc.user_id().is_some() {
|
||||
self.render_channel()
|
||||
} else {
|
||||
self.render_sign_in_prompt(cx)
|
||||
};
|
||||
ConstrainedBox::new(
|
||||
Container::new(element)
|
||||
|
Loading…
Reference in New Issue
Block a user