collab_ui: Show signed-out state when not connected to Collab (#35832)

This PR updates signed-out state of the Collab panel to show when not
connected to Collab, as opposed to just when the user is signed-out.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-08-07 18:29:59 -04:00 committed by GitHub
parent d693f02c63
commit d110459ef8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3053,7 +3053,7 @@ impl Render for CollabPanel {
.on_action(cx.listener(CollabPanel::move_channel_down))
.track_focus(&self.focus_handle)
.size_full()
.child(if self.user_store.read(cx).current_user().is_none() {
.child(if !self.client.status().borrow().is_connected() {
self.render_signed_out(cx)
} else {
self.render_signed_in(window, cx)