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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 56 additions and 26 deletions

View file

@ -35,6 +35,10 @@ impl CloudApiClient {
});
}
pub fn clear_credentials(&self) {
*self.credentials.write() = None;
}
fn authorization_header(&self) -> Result<String> {
let guard = self.credentials.read();
let credentials = guard