Skip to content

Commit

Permalink
Custom context (#226)
Browse files Browse the repository at this point in the history
reviewed offline
  • Loading branch information
jannovak-msft authored May 1, 2024
1 parent 082d549 commit be6b6d9
Show file tree
Hide file tree
Showing 3 changed files with 1,530 additions and 1,361 deletions.
2 changes: 1 addition & 1 deletion Project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@azure/communication-calling": "1.21.1-beta.4",
"@azure/communication-calling": "1.24.2-beta.1",
"@azure/communication-calling-effects": "1.0.1",
"@azure/communication-common": "^2.3.0",
"@azure/communication-identity": "^1.3.0",
Expand Down
24 changes: 24 additions & 0 deletions Project/src/MakeCall/IncomingCallCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@ export default class IncomingCallCard extends React.Component {
<div className="custom-row">
<div className="ringing-loader mb-4"></div>
</div>
{this.incomingCall?.customContext &&
<>
<div className="ms-Grid-row">
<div className="ms-Grid-col ms-lg6">
<h3 className="mb-0">Custom context:</h3>
</div>
</div>
{this.incomingCall.customContext.userToUser &&
<div className="ms-Grid-row">
<div className="ms-Grid-col ms-lg6">
UUI: {this.incomingCall.customContext.userToUser}
</div>
</div>
}
{this.incomingCall.customContext.xHeaders && this.incomingCall.customContext.xHeaders
.map(header =>
<div className="ms-Grid-row">
<div className="ms-Grid-col ms-lg6">
{header.key}: {header.value}
</div>
</div>)
}
</>
}
<div className="ms-Grid-row text-center">
<span className="incoming-call-button"
title={'Answer call with microphone unmuted and video off'}
Expand Down
Loading

0 comments on commit be6b6d9

Please sign in to comment.