Skip to content

Support changes to the set of User Channels in the Desktop Agent API #1543

Open
@robmoffat

Description

@robmoffat

Minor Issue

Area of Issue

  • App Directory
  • API
  • Context Data
  • Intents
  • Desktop Agent Bridging
  • Use Cases
  • Other : DACP Protocol.

Issue Description:

The new event listener system supports an event userChannelChanged which allows the desktop agent to tell an app that its user channel has changed.

In the latest fdc3-agent-proxy code, this is used to update the injected ChannelSelector in the following piece of code:

// DefaultChannelSupport.ts

this.channelSelector.updateChannel(theChannel?.id ?? null, this.userChannels);

However, this uses an internally-cached selection of user channels (this.userChannels), which is presumed to not change after the app has loaded.

However, it seems sensible that the selection of user channels might change, as the user may configure more or rename them.

We should therefore support a second event (e.g. userChannelsUpdated) that the Desktop Agent can send to the proxy to let it know that there is a modified set of user channels.

Additional Context:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions