Skip to content

Commit

Permalink
Add default option in CallWithChat (#5157)
Browse files Browse the repository at this point in the history
* Add default option in CallWithChat

* Change files
  • Loading branch information
prabhjot-msft authored Sep 10, 2024
1 parent df5a582 commit ff61052
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "prerelease",
"area": "feature",
"workstream": "DNS",
"comment": "Add default option in CallWithChat",
"packageName": "@azure/communication-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2101,6 +2101,8 @@ export type CommonCallAdapterOptions = {
};
deepNoiseSuppressionOptions?: {
onResolveDependency?: () => Promise<DeepNoiseSuppressionEffectDependency>;
deepNoiseSuppressionOnByDefault?: boolean;
hideDeepNoiseSuppressionButton?: boolean;
};
onFetchProfile?: OnFetchProfileCallback;
callingSounds?: CallingSounds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,8 @@ export type CommonCallAdapterOptions = {
*/
deepNoiseSuppressionOptions?: {
onResolveDependency?: () => Promise<DeepNoiseSuppressionEffectDependency>;
deepNoiseSuppressionOnByDefault?: boolean;
hideDeepNoiseSuppressionButton?: boolean;
};
/**
* Use this to fetch profile information which will override data in {@link CallAdapterState} like display name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ function callAdapterStateFromCallWithChatAdapterState(
onResolveVideoEffectDependency: callWithChatAdapterState.onResolveVideoEffectDependency,
/* @conditional-compile-remove(DNS) */
onResolveDeepNoiseSuppressionDependency: callWithChatAdapterState.onResolveDeepNoiseSuppressionDependency,
/* @conditional-compile-remove(DNS) */
deepNoiseSuppressionOnByDefault: callWithChatAdapterState.deepNoiseSuppressionOnByDefault,
/* @conditional-compile-remove(DNS) */
hideDeepNoiseSuppressionButton: callWithChatAdapterState.hideDeepNoiseSuppressionButton,
selectedVideoBackgroundEffect: callWithChatAdapterState.selectedVideoBackgroundEffect,
reactions: callWithChatAdapterState.reactions
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,10 @@ export function mergeCallAdapterStateIntoCallWithChatAdapterState(
onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
/* @conditional-compile-remove(DNS) */
onResolveDeepNoiseSuppressionDependency: callAdapterState.onResolveDeepNoiseSuppressionDependency,
/* @conditional-compile-remove(DNS) */
deepNoiseSuppressionOnByDefault: callAdapterState.deepNoiseSuppressionOnByDefault,
/* @conditional-compile-remove(DNS) */
hideDeepNoiseSuppressionButton: callAdapterState.hideDeepNoiseSuppressionButton,

selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect
};
Expand Down

0 comments on commit ff61052

Please sign in to comment.