@openfin/remote-adapter 37.81.21 → 37.81.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/remote-adapter.js +10 -7
- package/package.json +1 -1
package/out/remote-adapter.js
CHANGED
|
@@ -925,6 +925,14 @@ function requireFdc3Common () {
|
|
|
925
925
|
throw new Error(errorToThrow);
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
+
async _getChannels() {
|
|
929
|
+
const channels = await this.client.getContextGroups();
|
|
930
|
+
// fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
|
|
931
|
+
// this so people know that these APIs are not supported
|
|
932
|
+
return channels.map((channel) => {
|
|
933
|
+
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
934
|
+
});
|
|
935
|
+
}
|
|
928
936
|
/**
|
|
929
937
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
|
930
938
|
* @param channelId
|
|
@@ -935,7 +943,7 @@ function requireFdc3Common () {
|
|
|
935
943
|
this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
|
|
936
944
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
937
945
|
});
|
|
938
|
-
const systemChannels = await this.
|
|
946
|
+
const systemChannels = await this._getChannels();
|
|
939
947
|
const userChannel = systemChannels.find((channel) => channel.id === channelId);
|
|
940
948
|
if (userChannel) {
|
|
941
949
|
return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
@@ -959,12 +967,7 @@ function requireFdc3Common () {
|
|
|
959
967
|
this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
|
|
960
968
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
|
961
969
|
});
|
|
962
|
-
|
|
963
|
-
// fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
|
|
964
|
-
// this so people know that these APIs are not supported
|
|
965
|
-
return channels.map((channel) => {
|
|
966
|
-
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
|
967
|
-
});
|
|
970
|
+
return this._getChannels();
|
|
968
971
|
}
|
|
969
972
|
/**
|
|
970
973
|
* Join all Interop Clients at the given identity to context group `contextGroupId`.
|