Skip to content

Adopt IChatEntitlementService in chatWidget.ts #265334

@bpasero

Description

@bpasero

Noticed how you rely on context keys to drive logic:

private readonly chatSetupTriggerContext = ContextKeyExpr.or(

A better approach is to use IChatEntitlementService that has events for entitlement and sentiment changes:

  • entitlement: ChatEntitlement.Available maps to if the user can sign up for free
  • sentiment.installed maps to installation matters

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions