Open
Description
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.