diff --git a/pkg/connector/client.go b/pkg/connector/client.go index f9ce658..3b27239 100644 --- a/pkg/connector/client.go +++ b/pkg/connector/client.go @@ -396,7 +396,7 @@ func (m *MetaClient) Disconnect() { } func (m *MetaClient) IsLoggedIn() bool { - return m.Client.IsAuthenticated() + return m.Client.IsAuthenticatedAndLoaded() } func (m *MetaClient) IsThisUser(ctx context.Context, userID networkid.UserID) bool { diff --git a/pkg/messagix/client.go b/pkg/messagix/client.go index 612a5b6..e297bf5 100644 --- a/pkg/messagix/client.go +++ b/pkg/messagix/client.go @@ -386,7 +386,11 @@ func (c *Client) IsAuthenticated() bool { } else { isAuthenticated = c.configs.browserConfigTable.PolarisViewer.ID != "" } - return isAuthenticated && c.syncManager != nil + return isAuthenticated +} + +func (c *Client) IsAuthenticatedAndLoaded() bool { + return c.IsAuthenticated() && c.syncManager != nil } func (c *Client) GetCurrentAccount() (types.UserInfo, error) {