Use the user from the CloudUserStore to drive the user menu (#35375)

This PR updates the user menu in the title bar to base the "signed in"
state on the user in the `CloudUserStore` rather than the `UserStore`.

This makes it possible to be signed-in—at least, as far as the user menu
is concerned—even when disconnected from Collab.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2025-07-30 20:31:22 -04:00
committed by GitHub
parent 296bb66b65
commit fbc784d323
4 changed files with 56 additions and 26 deletions
+1
View File
@@ -1491,6 +1491,7 @@ impl Client {
pub async fn sign_out(self: &Arc<Self>, cx: &AsyncApp) {
self.state.write().credentials = None;
self.cloud_client.clear_credentials();
self.disconnect(cx);
if self.has_credentials(cx).await {