Skip to content

Commit

Permalink
updates to manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
ddematheu2 committed Jan 31, 2023
1 parent 285133e commit cc8807c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
10 changes: 8 additions & 2 deletions ACS-Call-Composite/Composite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ function Composite(props: CompositeProps): JSX.Element {

useEffect(() => {
const createAdapter = async (): Promise<void> => {
setCallAdapter(
try{setCallAdapter(
await createAzureCommunicationCallAdapter({
userId: { communicationUserId: props.userId },
displayName: props.displayName,
credential: new AzureCommunicationTokenCredential(props.token),
locator: {groupId: props.groupId}
})
);
)} catch {
console.error('Failed to create call adapter');
setCallAdapter(undefined);
};
};
if( credential != undefined && props.groupId != "") createAdapter();
}, [credential]);
Expand All @@ -46,6 +49,9 @@ function Composite(props: CompositeProps): JSX.Element {
if (credential === undefined) {
return <h3>Failed to construct credential. Provided token is malformed.</h3>;
}
if (callAdapter === undefined) {
return <h3>Failed to construct call adapter.</h3>;
}
if (props.groupId === "") {
return <h3>Provide a valid thread id</h3>;
}
Expand Down
2 changes: 1 addition & 1 deletion ACS-Call-Composite/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<manifest>
<control namespace="Azure" constructor="ACSCallComposite" version="0.0.16" display-name-key="ACSCallComposite" description-key="ACSChatComposite description" control-type="standard" >
<control namespace="Azure" constructor="ACSCallUIComposite" version="0.0.1" display-name-key="ACSCallUIComposite" description-key="ACSChatComposite description" control-type="standard" >
<!--external-service-usage node declares whether this 3rd party PCF control is using external service or not, if yes, this control will be considered as premium and please also add the external domain it is using.
If it is not using any external service, please set the enabled="false" and DO NOT add any domain below. The "enabled" will be false by default.
Example1:
Expand Down
2 changes: 1 addition & 1 deletion ACS-Call-Composite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Composite from './Composite'
import React = require('react');
import ReactDOM = require('react-dom');

export class ACSCallComposite implements ComponentFramework.StandardControl<IInputs, IOutputs> {
export class ACSCallUIComposite implements ComponentFramework.StandardControl<IInputs, IOutputs> {
private _container:HTMLDivElement;
private first:boolean;

Expand Down
2 changes: 1 addition & 1 deletion ACS-Chat-Composite/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<manifest>
<control namespace="Azure" constructor="ACSChatComposite" version="0.0.16" display-name-key="ACSChatComposite" description-key="ACSChatComposite description" control-type="standard" >
<control namespace="Azure" constructor="ACSChatUIComposite" version="0.0.1" display-name-key="ACSChatUIComposite" description-key="ACSChatComposite description" control-type="standard" >
<!--external-service-usage node declares whether this 3rd party PCF control is using external service or not, if yes, this control will be considered as premium and please also add the external domain it is using.
If it is not using any external service, please set the enabled="false" and DO NOT add any domain below. The "enabled" will be false by default.
Example1:
Expand Down
2 changes: 1 addition & 1 deletion ACS-Chat-Composite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Composite from './Composite'
import React = require('react');
import ReactDOM = require('react-dom');

export class ACSChatComposite implements ComponentFramework.StandardControl<IInputs, IOutputs> {
export class ACSChatUIComposite implements ComponentFramework.StandardControl<IInputs, IOutputs> {
private _container:HTMLDivElement;
private first:boolean;

Expand Down
2 changes: 1 addition & 1 deletion Solutions/src/Other/Solution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ImportExportXml version="9.1.0.643" SolutionPackageVersion="9.1" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SolutionManifest>
<!-- Unique Name of Cds Solution-->
<UniqueName>ACS UI Library</UniqueName>
<UniqueName>ACS_UI_Library</UniqueName>
<LocalizedNames>
<!-- Localized Solution Name in language code -->
<LocalizedName description="ACS UI Library solutions" languagecode="1033" />
Expand Down

0 comments on commit cc8807c

Please sign in to comment.